Skip to content

CLN: simplify _setitem_with_indexer #31887

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 6 commits into from
Feb 20, 2020

Conversation

jbrockmendel
Copy link
Member

The MultiIndex check it is doing is unnecessary for positional indexing.

Other things being cleaned up here appear to be remnants from Panel

@jorisvandenbossche
Copy link
Member

Now you have been working with _setitem_with_indexer, could you add a docstring for it explaining what the scope of this function is (eg only used for positional indexing?)

@jbrockmendel
Copy link
Member Author

could you add a docstring for it explaining what the scope of this function is (

good idea

@jbrockmendel jbrockmendel added the Indexing Related to indexing on series/frames, not to indexes themselves label Feb 12, 2020
@jbrockmendel
Copy link
Member Author

im of mixed mind on adding a docstring at the moment, because there is a big gap between what the method does vs what it is supposed to do.

@jorisvandenbossche
Copy link
Member

Even trying to write down a bit what you know about what it is supposed to do and what it actually does (what led you to previous comment) is useful IMO; it doesn't need to be a perfectly standard formatted docstring

@jreback jreback added this to the 1.1 milestone Feb 18, 2020
@jreback
Copy link
Contributor

jreback commented Feb 18, 2020

lgtm needs a rebase

@jbrockmendel
Copy link
Member Author

rebased+green

@jbrockmendel
Copy link
Member Author

@jorisvandenbossche gentle ping

@jorisvandenbossche jorisvandenbossche merged commit a12ab06 into pandas-dev:master Feb 20, 2020
@jorisvandenbossche
Copy link
Member

Thanks!

@jbrockmendel jbrockmendel deleted the loc-setitem branch February 20, 2020 23:27
roberthdevries pushed a commit to roberthdevries/pandas that referenced this pull request Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants