Skip to content

Implement Categorical.searchsorted(v, side, sorter) #8420 #8972

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Implement Categorical.searchsorted(v, side, sorter) #8420 #8972

wants to merge 3 commits into from

Conversation

stevesimmons
Copy link
Contributor

closes #8420

Continuation of #8928

self.assert_numpy_array_equal(res, chk)

# Scalar version of single item array
# Ambiguous what Categorical should return as np.array returns
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am happy with this always returning an array. Returning a scalar indexer is a bit odd IMHO. Pls fixup and just have one path.

@jreback jreback added Categorical Categorical Data Type Enhancement labels Dec 3, 2014
@jreback jreback added this to the 0.15.2 milestone Dec 3, 2014
@jreback jreback closed this Dec 3, 2014
@jreback jreback reopened this Dec 3, 2014
@jreback
Copy link
Contributor

jreback commented Dec 4, 2014

looks good. just need a release note, enhancements section. ping when you have pushed. thanks.

@jreback
Copy link
Contributor

jreback commented Dec 4, 2014

can you add a release note?

@stevesimmons
Copy link
Contributor Author

Added in whatsnew for 0.15.2

@jreback
Copy link
Contributor

jreback commented Dec 5, 2014

merged via 5928075

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

categorical needs a searchsorted implmentation
2 participants