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

Comments

@wesm
Copy link
Member

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

This comment has been minimized.

Copy link
Member Author

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 in d9035b1 Nov 2, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.