Skip to content

REF: use _validate_foo pattern in Categorical #36181

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

Merged
merged 2 commits into from
Sep 7, 2020

Conversation

jbrockmendel
Copy link
Member

Similar to how we did it in datetimelike, eventually these validator methods are going to end up sharing most of their code

)
return code[0]

def _validate_searchsorted_value(self, value):
Copy link
Contributor

Choose a reason for hiding this comment

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

can you type as much as possible

Copy link
Member Author

Choose a reason for hiding this comment

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

sure, there are a few of these and im planning to do a typing pass at the end

Copy link
Contributor

Choose a reason for hiding this comment

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

kk

@jreback jreback added Categorical Categorical Data Type Indexing Related to indexing on series/frames, not to indexes themselves Refactor Internal refactoring of code labels Sep 7, 2020
@jreback jreback added this to the 1.2 milestone Sep 7, 2020
@jreback jreback merged commit 7584e59 into pandas-dev:master Sep 7, 2020
@jbrockmendel jbrockmendel deleted the box-mixin branch September 7, 2020 20:09
@jbrockmendel
Copy link
Member Author

The related others are #36173 (just rebased), #36180, #36171, #36176

jbrockmendel added a commit to jbrockmendel/pandas that referenced this pull request Sep 8, 2020
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type Indexing Related to indexing on series/frames, not to indexes themselves Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants