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
Running through the construction of a pd.Series object in the debugger, it looks like this is happening in Series._set_axis because is_all_dates is True for an index with just None in it.
def_set_axis(self, axis, labels, fastpath=False):
""" override generic, we want to set the _typ here """ifnotfastpath:
labels=_ensure_index(labels)
is_all_dates=labels.is_all_datesifis_all_dates:
frompandas.tseries.indeximportDatetimeIndexfrompandas.tseries.periodimportPeriodIndexifnotisinstance(labels, (DatetimeIndex, PeriodIndex)):
labels=DatetimeIndex(labels)
.....
This looks like a change from 0.13.1 to HEAD. If you create a series like this:
Then in 0.13.1 the result is:
but in HEAD the result is
So the index has changed from Index/object to DatetimeIndex/datetime64.
The text was updated successfully, but these errors were encountered: