Skip to content

Series.min(skipna=True) includes nan/inf? #7558

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
jankatins opened this issue Jun 24, 2014 · 2 comments
Closed

Series.min(skipna=True) includes nan/inf? #7558

jankatins opened this issue Jun 24, 2014 · 2 comments
Labels
Bug Duplicate Report Duplicate issue or pull request Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Numeric Operations Arithmetic, Comparison, and Logical operations
Milestone

Comments

@jankatins
Copy link
Contributor

In[31]: s2 = pd.Series(["a","z",np.nan])
In[32]: s2.max()
Out[32]: 'z'
In[33]: s2.min()
Out[33]: inf
In[34]: s2.min(skipna=True)
Out[34]: inf

Reading the docs I get the impression that it should return "a" in both cases (as skipna defaults to True).

If so, #7217 also needs to change.

@jankatins jankatins changed the title Series.min(skipna=True) includes nan Series.min(skipna=True) includes nan/inf? Jun 24, 2014
@cpcloud cpcloud added this to the 0.14.1 milestone Jun 24, 2014
@cpcloud cpcloud self-assigned this Jun 24, 2014
@jreback jreback added the Dupe label Jun 24, 2014
@jreback
Copy link
Contributor

jreback commented Jun 24, 2014

dupe of #4147

@jreback jreback closed this as completed Jun 24, 2014
@cpcloud
Copy link
Member

cpcloud commented Jun 24, 2014

oh nice didn't see the dupe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Duplicate Report Duplicate issue or pull request Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Numeric Operations Arithmetic, Comparison, and Logical operations
Projects
None yet
Development

No branches or pull requests

3 participants