-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: frame creation with multi-index and tuples in dict #10863
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
Comments
See #7888 use |
yep, so the issue is with the
|
I assume I am running into this same issue -- multiindex with pd.Timestamp.date() in a tuple results in all NaN, pd.Timestamp works fine. Examples below don't have anything else in the tuple to simplify demonstration of the issue, but my use case obviously has other stuff there. In [3]: pd.DataFrame({'foo': {(pd.Timestamp(2017, 10, 5).date(),): 21.0}})
Out[3]:
foo
2017-10-05 NaN
In [4]: pd.DataFrame({'foo': {(pd.Timestamp(2017, 10, 5),): 21.0}})
Out[4]:
foo
2017-10-05 21.0 I can go into detail on my use case if it were helpful, but it's basically looking at employee productivity per shift, where each day (part 0 of the index) has several shifts (part 1 of the index). For now, using |
The issue works on master. Could use a test.
|
The text was updated successfully, but these errors were encountered: