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

wesm opened this issue Oct 20, 2012 · 1 comment


Copy link

commented Oct 20, 2012


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


This comment has been minimized.

Copy link
Member Author

commented Nov 2, 2012

This is caused by an upstream bug in NumPy ( 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
None yet
1 participant
You can’t perform that action at this time.