Skip to content

REF: simplify Series.__setitem__ #41912

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 9 commits into from
Jun 18, 2021
Merged

Conversation

jbrockmendel
Copy link
Member

Motivating goal is to get rid of the Series methods that use self.index._engine.get_loc, as these are a mine field (xref #41846). The correct method would be to use self.index.get_loc, the trouble being that we are inconsistent about what kinds of exceptions we raise in engine.get_loc vs Index.get_loc (and Index subclasses). This is a bite-size step towards this goal.

@simonjayhawkins simonjayhawkins added Indexing Related to indexing on series/frames, not to indexes themselves Refactor Internal refactoring of code Series Series data structure labels Jun 10, 2021
@jreback
Copy link
Contributor

jreback commented Jun 16, 2021

can you rebase

@jreback jreback added this to the 1.4 milestone Jun 18, 2021
@jreback jreback merged commit f652994 into pandas-dev:master Jun 18, 2021
@jreback
Copy link
Contributor

jreback commented Jun 18, 2021

sure

@jbrockmendel jbrockmendel deleted the ref-setitem branch June 18, 2021 02:05
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
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 Series Series data structure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants