Skip to content
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

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

Closed
jreback opened this issue Jul 31, 2014 · 0 comments · Fixed by #8264
Closed

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

jreback opened this issue Jul 31, 2014 · 0 comments · Fixed by #8264
Labels
Bug Datetime Datetime data dtype MultiIndex
Milestone

Comments

@jreback
Copy link
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype MultiIndex
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant