-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
Closing CandidateMay be closeable, needs more eyeballsMay be closeable, needs more eyeballsDatetimeDatetime data dtypeDatetime data dtypeError ReportingIncorrect or improved errors from pandasIncorrect or improved errors from pandasIndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselves
Description
related #7209
Might be a nicer error message (gist of this)
Hey you are trying to access a single element on AXIS 1, you can do it with a slice if you want, or use .loc to access the frame by row
In [3]: df = DataFrame(1,index=pd.date_range('20130101',periods=5),columns=['value'])
In [4]: df['20130102']
KeyError: '20130102'
In [5]: df['20130102':]
Out[5]:
value
2013-01-02 1
2013-01-03 1
2013-01-04 1
2013-01-05 1
Metadata
Metadata
Assignees
Labels
Closing CandidateMay be closeable, needs more eyeballsMay be closeable, needs more eyeballsDatetimeDatetime data dtypeDatetime data dtypeError ReportingIncorrect or improved errors from pandasIncorrect or improved errors from pandasIndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselves