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

Closed
jreback opened this Issue Jul 18, 2014 · 1 comment

Comments

Projects
None yet
1 participant
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

jreback added this to the 0.15.0 milestone Jul 18, 2014

Contributor

jreback commented Jul 18, 2014

xref #7792

cc @sinhrks

jreback added the Dupe label Jul 18, 2014

jreback closed this Jul 18, 2014

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