Skip to content

REF: implement first_valid_index in core.missing #29400

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

Merged
merged 3 commits into from
Nov 5, 2019

Conversation

jbrockmendel
Copy link
Member

The implementation here operates on the values (ndarray or EA) instead of on the Series/DataFrame.

This lets us avoid a runtime import of Series, so core.missing joins the Simple Dependencies Club.

-------
int or None
"""
assert how in ["first", "last"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize this is the existing behavior, but does it make sense to change this to a ValueError instead? That seems more consistent with how we've been validating these types of parameters elsewhere.

@jreback jreback added the Clean label Nov 5, 2019
@jreback jreback added this to the 1.0 milestone Nov 5, 2019
@jreback jreback merged commit 5b332e4 into pandas-dev:master Nov 5, 2019
@jreback
Copy link
Contributor

jreback commented Nov 5, 2019

thanks @jbrockmendel if you'd hit @jschendel suggestion in a followup would be great.

@jbrockmendel jbrockmendel deleted the ref-algos branch November 5, 2019 17:47
Reksbril pushed a commit to Reksbril/pandas that referenced this pull request Nov 18, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants