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

Comments

Projects
None yet
3 participants
@jbrockmendel
Member

jbrockmendel commented Jan 3, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment