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

Series[timedelta64] +/- TimedeltaIndex inherits name from TimedeltaIndex #19043

Closed
jbrockmendel opened this issue Jan 3, 2018 · 0 comments · Fixed by #19044
Closed

Series[timedelta64] +/- TimedeltaIndex inherits name from TimedeltaIndex #19043

jbrockmendel opened this issue Jan 3, 2018 · 0 comments · Fixed by #19044
Labels
Bug Datetime Datetime data dtype Timedelta Timedelta data type
Milestone

Comments

@jbrockmendel
Copy link
Member

Opening mainly for an issue to reference in upcoming PR.

This behavior is not present in 0.22.0, is present in master as of 04beec7

tdi = pd.TimedeltaIndex(['1day', '2days', '3days'])
ser = pd.Series(tdi)
tdi.name = 'foo'
ser.name = 'bar'

>>> (tdi + ser).name
'foo'
>>> (ser + tdi).name
'foo'
>>> (ser - tdi).name
'foo'
>>> (tdi - ser).name
'foo'

These names should all be coming back as None.

@gfyoung gfyoung added Bug Timedelta Timedelta data type Datetime Datetime data dtype labels Jan 3, 2018
@jreback jreback added this to the 0.23.0 milestone Jan 3, 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 Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants