Skip to content

pd.isnull(Panel) errors when Panel is empty #4986

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
dalejung opened this issue Sep 25, 2013 · 2 comments
Closed

pd.isnull(Panel) errors when Panel is empty #4986

dalejung opened this issue Sep 25, 2013 · 2 comments
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Milestone

Comments

@dalejung
Copy link
Contributor

related #3551

import pandas as pd

pd.isnull(pd.DataFrame()) # works
pd.isnull(pd.Panel()) # IndexError: index 0 is out of bounds for axis 0 with size 0

While the above is contrived. I hit the error when building out a slice(0,0) programmatically like the following:

panel = pd.util.testing.makePanel()
np.all(pd.isnull(panel.iloc[0:0])) # IndexError: index 0 is out of bounds for axis 0 with size 0
@jreback
Copy link
Contributor

jreback commented Sep 25, 2013

I think once #3551 this will work (and i think its 'wrong' or at least inefficient now)

@jreback
Copy link
Contributor

jreback commented Feb 15, 2014

yep...fixed in #3551

@jreback jreback closed this as completed Feb 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

No branches or pull requests

2 participants