Skip to content

first_valid_index for all NaN DataFrame #14397

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
httassadar opened this issue Oct 11, 2016 · 1 comment
Closed

first_valid_index for all NaN DataFrame #14397

httassadar opened this issue Oct 11, 2016 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request Indexing Related to indexing on series/frames, not to indexes themselves

Comments

@httassadar
Copy link

Similar to this one, but on a non-empty DataFrame whose values are all NaN.

This raises an error, instead of returning None

pd.Series([np.nan]).first_valid_index() # this returns None
pd.DataFrame([np.nan]).first_valid_index() # raise error

>>> pd.__version__
u'0.18.1'
@chris-b1
Copy link
Contributor

Thanks - added the case to #9752, same underlying issue.

@chris-b1 chris-b1 added Indexing Related to indexing on series/frames, not to indexes themselves Duplicate Report Duplicate issue or pull request labels Oct 11, 2016
@chris-b1 chris-b1 added this to the No action milestone Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

No branches or pull requests

2 participants