Skip to content

Dataframe fancy indexing behaviour with Periodindex via strings #3462

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

Closed
ghost opened this issue Apr 25, 2013 · 1 comment
Closed

Dataframe fancy indexing behaviour with Periodindex via strings #3462

ghost opened this issue Apr 25, 2013 · 1 comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions Enhancement Indexing Related to indexing on series/frames, not to indexes themselves Period Period data type

Comments

@ghost
Copy link

ghost commented Apr 25, 2013

cols=period_range('2000',periods=2)
df=DataFrame([[1,2],[3,4]],columns=cols)
cols = map(unicode,cols)
df.loc[:,cols]

KeyError: "[[u'2000-01-01', u'2000-01-02']] are not in ALL in the [columns]"

@jreback , not sure whether to call this a bug.

@jreback
Copy link
Contributor

jreback commented Apr 25, 2013

yeh...this is sort of like string slicing of period index....I'd call it an enhancement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions Enhancement Indexing Related to indexing on series/frames, not to indexes themselves Period Period data type
Projects
None yet
Development

No branches or pull requests

1 participant