Skip to content
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

NaT - Series[timedelta64] returns NaT #19158

Closed
jbrockmendel opened this issue Jan 9, 2018 · 0 comments · Fixed by #19251
Closed

NaT - Series[timedelta64] returns NaT #19158

jbrockmendel opened this issue Jan 9, 2018 · 0 comments · Fixed by #19251
Labels
Bug Datetime Datetime data dtype Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Timedelta Timedelta data type
Milestone

Comments

@jbrockmendel
Copy link
Member

Surfaced in #19139, not present in 0.22.0:

tdi = pd.TimedeltaIndex(['1 day', '2 day'], name='x')
ser = pd.Series(tdi)

>>> pd.NaT - ser
NaT

Expected:

>>> pd.NaT - ser
0   NaT
1   NaT
Name: x, dtype: timedelta64[ns]
@jreback jreback added Bug Datetime Datetime data dtype Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Timedelta Timedelta data type Difficulty Intermediate labels Jan 9, 2018
@jreback jreback added this to the 2.0 milestone Jan 9, 2018
@jreback jreback modified the milestones: 2.0, 0.23.0 Jan 16, 2018
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