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: multi-index with one level with a tz buggy #7793

Closed
jreback opened this issue Jul 18, 2014 · 1 comment · Fixed by #7802
Closed

BUG: multi-index with one level with a tz buggy #7793

jreback opened this issue Jul 18, 2014 · 1 comment · Fixed by #7802
Labels
Bug Duplicate Report Duplicate issue or pull request MultiIndex Timezones Timezone data dtype
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Jul 18, 2014

related: #7791, #7792 (and I think this causes both)
this is a dupe of #7746

In [8]: df = DataFrame(np.arange(6).reshape(6,1),index=MultiIndex.from_product([['a','b'],date_range('20130101',periods=3,tz='Europe/Berlin')]))

In [9]: df
Out[9]: 
                             0
a 2013-01-01 00:00:00+01:00  0
  2013-01-02 00:00:00+01:00  1
  2013-01-03 00:00:00+01:00  2
b 2013-01-01 00:00:00+01:00  3
  2013-01-02 00:00:00+01:00  4
  2013-01-03 00:00:00+01:00  5

In [10]: df.reset_index()

ValueError: Length of values does not match length of index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Duplicate Report Duplicate issue or pull request MultiIndex Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant