BUG: creating multi-index with datetimes in the levels #7888

Closed
jreback opened this Issue Jul 31, 2014 · 0 comments

Comments

Projects
None yet
1 participant
Contributor

jreback commented Jul 31, 2014

http://stackoverflow.com/questions/25059140/pandas-multiindex-not-working-with-read-csv-and-datetime-objects/25059472#25059472

In [3]: date1 = datetime.date.today()

In [4]: date2 = datetime.date.today().replace(month=1)

In [5]: date_cols=['date1', 'date2']

In [6]: index = pd.MultiIndex.from_product([[date1],[date2]])

The first level of this multi-index is a Index of object dtyped datetimes, rather than a DatetimeIndex.

might be a bug in the creation process

jreback added this to the 0.15.0 milestone Jul 31, 2014

jreback closed this in #8264 Sep 14, 2014

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