-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TimedeltaIndex raises error when slicing from '0s' #10583
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
https://github.com/pydata/pandas/blob/master/pandas/tslib.pyx#L2213 should be
I guess the raise doesn't make sense. |
@jreback no one is working on this, right? I'll submit a PR soon. |
nope |
Where should I put the test for this? @jreback Thanks. |
test_timedeltas.py |
jreback
added a commit
that referenced
this issue
Sep 1, 2015
BUG: Fixed bug that Timedelta raises error when slicing from 0s (issue #10583)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
raises a
ValueError: invalid resolution
, whileprint(df.loc['5s':,:])
works.Workaround :
print(df.loc[pd.Timedelta('0s'):,:])
The text was updated successfully, but these errors were encountered: