Skip to content
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

Bug with boolean indexing on empty DataFrame #2096

Closed
wesm opened this issue Oct 20, 2012 · 1 comment
Closed

Bug with boolean indexing on empty DataFrame #2096

wesm opened this issue Oct 20, 2012 · 1 comment
Assignees
Labels
Milestone

Comments

@wesm
Copy link
Member

wesm commented Oct 20, 2012

xref http://stackoverflow.com/questions/12700251/pandas-edge-case-on-boolean-index-into-empty-dataframe

blah = pandas.DataFrame(numpy.empty([0, 1]), columns=['A'], index=pandas.DatetimeIndex([]))
blah[numpy.array([], bool)]

Empty DataFrame

blah[numpy.array([], bool)] = 0.0
@ghost ghost assigned wesm Nov 2, 2012
@wesm
Copy link
Member Author

wesm commented Nov 2, 2012

This is caused by an upstream bug in NumPy (http://github.com/numpy/numpy/issues/2704). I will work around

@wesm wesm closed this as completed in d9035b1 Nov 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant