A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/9926 below:

index name lost with timedelta ops · Issue #9926 · pandas-dev/pandas · GitHub

Skip to content Navigation Menu

Saved searches Use saved searches to filter your results more quickly

Sign up 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 Additional navigation options

BUG: index name lost with timedelta ops #9926

Description
import pandas as pd 

dtidx = pd.DatetimeIndex(['2011-01-01'], freq='D', name='dtidx')
(dtidx + 1).name
# dtidx

# NG
(dtidx + pd.Timedelta('1 day')).name
# None

tdidx = pd.TimedeltaIndex(['1 day'], freq='D', name='tdidx')
(tdidx + 1).name
# tdidx

# NG
(tdidx + pd.Timedelta('1 day')).name
# None

ref: #9862

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4