Skip to content

REF: implement Categorical._validate_setitem_value #36180

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

Moving towards sharing more methods


return lindexer

def _validate_setitem_key(self, key):
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

freq = self._get_getitem_freq(key)
return self._simple_new(result, dtype=self.dtype, freq=freq)

def _validate_getitem_key(self, key):
Copy link
Contributor

Choose a reason for hiding this comment

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

same

Copy link
Contributor

Choose a reason for hiding this comment

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

doc-string if easy

@jreback jreback added 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
Copy link
Contributor

jreback commented Sep 7, 2020

ok to type in later PRs, pls merge master

@jbrockmendel
Copy link
Member Author

updated+green

@jreback jreback merged commit 405b5c5 into pandas-dev:master Sep 7, 2020
@jbrockmendel jbrockmendel deleted the one-more-validator branch September 8, 2020 00:12
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
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