You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>>s=pd.Series(['x'])
>>>s['td'] =pd.Timedelta('9 days')
>>>s0xtd777600000000000dtype: object# However, *if the key already exists*, it works as expected:>>>s['td_2'] =0>>>s['td_2'] =pd.Timedelta('9 days')
>>>s0xtd777600000000000td_29days00:00:00dtype: object
Problem description
Timedeltas should remain Timedeltas when inserted into object Series, particularly because they are nice to work with. 😅
Code Sample, a copy-pastable example if possible
Problem description
Timedeltas should remain Timedeltas when inserted into object Series, particularly because they are nice to work with. 😅
Expected Output
Output of
pd.show_versions()
pandas 0.23.3
The text was updated successfully, but these errors were encountered: