-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Index doesn't have an .empty attribute #13207
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
Labels
Milestone
Comments
yeah this could be added (or more likely the Series one moved to the Mixin) |
@jreback I would like to work on this. Probably add an attribute to Index, perhaps in the pandas/indexes/base.py file? |
@pfrcks - I think you could add it to the |
4 tasks
4 tasks
4 tasks
mattip
pushed a commit
to mattip/pandas
that referenced
this issue
Apr 3, 2017
Previously, attempting to evaluate an Index in a boolean context prints an error message listing various alternatives, one of which is `.empty`, which was not actually implemented on `Index`. Author: Scott Sanderson <[email protected]> This patch had conflicts when merged, resolved by Committer: Jeff Reback <[email protected]> closes pandas-dev#13207 Closes pandas-dev#15270 from ssanderson/add-empty-to-index and squashes the following commits: bb0126f [Scott Sanderson] ENH: Add empty property to Index.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Code Sample, a copy-pastable example if possible
The text was updated successfully, but these errors were encountered: