-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: partial slicing with a Timestamp on PeriodIndex #15920
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
Comments
can you make this example not dependent on |
|
Or:
|
yeah looks buggy. Period partial slicing is not fully developed. pull-requests are welcome. |
This would need tests with datetimes & string slicing. |
xref to #13429 (different though no PI). |
If I understand the stack traces correctly, the bug is somewhere in pandas.core.common, right? |
this is a little complicated, but you can have a look at: https://github.com/pandas-dev/pandas/blob/master/pandas/tseries/period.py#L725 step thru with a successful match and then the unsucceful one. |
I ran a git pull, and can confirm that the bug remains in the master branch.
|
@ocschwar this is an open bug, not sure why you would think its fixed. |
An example: a PeriodicIndex with a freq of 300S. First second works.
Remaining portion of the interval raises a KeyError.
The text was updated successfully, but these errors were encountered: