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

Indexing TimeSeries by date string drops last day #3546

Closed
goyodiaz opened this issue May 8, 2013 · 1 comment · Fixed by #3548
Closed

Indexing TimeSeries by date string drops last day #3546

goyodiaz opened this issue May 8, 2013 · 1 comment · Fixed by #3548
Labels
Bug Datetime Datetime data dtype
Milestone

Comments

@goyodiaz
Copy link
Contributor

goyodiaz commented May 8, 2013

>>> import pandas as pd
>>> pd.__version__
'0.12.0.dev'
>>> index = pd.date_range(start='2013-05-31 00:00', end='2013-05-31 23:00', freq='H')
>>> series = pd.Series(range(len(index)), index=index)
>>> print series.index.summary()
DatetimeIndex: 24 entries, 2013-05-31 00:00:00 to 2013-05-31 23:00:00
Freq: H
>>> print series['2013-05'].index.summary()
DatetimeIndex: 1 entries, 2013-05-31 00:00:00 to 2013-05-31 00:00:00
Freq: H

I would expect the slice to be the same as the original series.

@jreback
Copy link
Contributor

jreback commented May 8, 2013

thanks for the report, fixed and merged in, pls give a try with master....this was bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype
Projects
None yet
2 participants