Skip to content

Series.cummin raises ValueError when datetime64 Series contains NaT #8965

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
unutbu opened this issue Dec 2, 2014 · 0 comments · Fixed by #8966
Closed

Series.cummin raises ValueError when datetime64 Series contains NaT #8965

unutbu opened this issue Dec 2, 2014 · 0 comments · Fixed by #8966
Labels
Bug Datetime Datetime data dtype Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Timedelta Timedelta data type
Milestone

Comments

@unutbu
Copy link
Contributor

unutbu commented Dec 2, 2014

Ref: http://stackoverflow.com/q/27240365/190597

s = pd.Series(pd.date_range('2008-09-15', periods=10, freq='m'))
s.loc[10] = pd.NaT
s.cummin()

ValueError: Could not convert object to NumPy datetime
  • validate for cummax & timedelta64[ns]
@jreback jreback added Bug Datetime Datetime data dtype Timedelta Timedelta data type Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate labels Dec 2, 2014
@jreback jreback added this to the 0.16.0 milestone Dec 2, 2014
@jreback jreback modified the milestones: 0.15.2, 0.16.0 Dec 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants