BUG: indexing with an entire period_index raising #4125

Closed
jreback opened this Issue Jul 4, 2013 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

jreback commented Jul 4, 2013

In [57]: pi = pd.period_range('2002-01','2003-12',freq='M')

In [58]: pi
Out[58]: 
<class 'pandas.tseries.period.PeriodIndex'>
freq: M
[2002-01, ..., 2003-12]
length: 24

In [59]: p = pd.Panel(randn(24,5,10),items=pi)

In [60]: p
Out[60]: 
<class 'pandas.core.panel.Panel'>
Dimensions: 24 (items) x 5 (major_axis) x 10 (minor_axis)
Items axis: 2002-01 to 2003-12
Major_axis axis: 0 to 4
Minor_axis axis: 0 to 9

This is ok

In [61]: p.ix[list(pi)]
Out[61]: 
<class 'pandas.core.panel.Panel'>
Dimensions: 24 (items) x 5 (major_axis) x 10 (minor_axis)
Items axis: 2002-01 to 2003-12
Major_axis axis: 0 to 4
Minor_axis axis: 0 to 9

This raises?

In [62]: p.ix[pi]
DateParseError: day is out of range for month

jreback added the Period label Feb 26, 2014

@jreback jreback modified the milestone: 0.15.0, 0.14.0 Feb 26, 2014

@jreback jreback modified the milestone: 0.16.0, Next Major Release Mar 3, 2015

@jreback jreback modified the milestone: 0.17.0, Next Major Release Sep 7, 2015

@jreback jreback added a commit that referenced this issue Sep 9, 2015

@jreback jreback whatsnew note / fixes xref #4125 6636ad5
Contributor

jreback commented Sep 9, 2015

closed by #11015

jreback closed this Sep 9, 2015

@nickeubank nickeubank added a commit to nickeubank/pandas that referenced this issue Sep 29, 2015

@jreback @nickeubank jreback + nickeubank whatsnew note / fixes xref #4125 02edd9d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment