Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
TimedeltaIndex raises error when slicing from '0s' #10583
Comments
|
https://github.com/pydata/pandas/blob/master/pandas/tslib.pyx#L2213 should be
I guess the raise doesn't make sense. |
jreback
added Bug Timedelta
labels
Jul 15, 2015
jreback
modified the milestone: Next Major Release, 0.17.0
Jul 15, 2015
jreback
modified the milestone: Next Major Release, 0.17.0
Aug 20, 2015
jreback
added Prio-low Difficulty Novice Effort Low
labels
Aug 20, 2015
|
@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 |
terrytangyuan
referenced
this issue
Sep 1, 2015
Closed
BUG: Fixed bug that Timedelta raises error when slicing from 0s (issue #10583) #10957
jreback
modified the milestone: 0.17.0, Next Major Release
Sep 1, 2015
terrytangyuan
referenced
this issue
Sep 1, 2015
Merged
BUG: Fixed bug that Timedelta raises error when slicing from 0s (issue #10583) #10960
jreback
closed this
in #10960
Sep 1, 2015
jreback
added a commit
that referenced
this issue
Sep 1, 2015
|
|
jreback |
9bdae60
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JonasAbernot commentedJul 15, 2015
raises a
ValueError: invalid resolution, whileprint(df.loc['5s':,:])works.Workaround :
print(df.loc[pd.Timedelta('0s'):,:])