Skip to content

DOC: don't say .loc is "strictly label-based" if it isn't #8686

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
BrenBarn opened this issue Oct 30, 2014 · 1 comment · Fixed by #9238
Closed

DOC: don't say .loc is "strictly label-based" if it isn't #8686

BrenBarn opened this issue Oct 30, 2014 · 1 comment · Fixed by #9238
Labels
Docs Indexing Related to indexing on series/frames, not to indexes themselves
Milestone

Comments

@BrenBarn
Copy link

One pedantic little thing I keep noticing: the docs for .loc say repeatedly that it is "strictly label-based", but it also accepts an array of booleans. I think it's good for .loc to have accept booleans, but it's misleading and confusing for the docs to say (in bold, no less) that it accepts only labels found in the index, and then immediately contradict themselves by saying it also accepts arrays of booleans. Booleans aren't labels found in the index.

@jreback
Copy link
Contributor

jreback commented Oct 30, 2014

welcome a PR to update to better reflect your views.

the 'strict' is simply that it uses the LABEL and not an integer to represent a positional indicator. I think that is clear. But if you think you can improve, then by all means.

@jreback jreback added Docs Indexing Related to indexing on series/frames, not to indexes themselves labels Oct 30, 2014
@jreback jreback added this to the 0.16.0 milestone Oct 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants