Skip to content

Commit 13de27d

Browse files
author
Jean-Mathieu Deschenes
committed
Fixes from comments of @gfyoung
* Fix Lint Error
1 parent 0b05168 commit 13de27d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pandas/core/indexes/timedeltas.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
_ensure_int64)
1616
from pandas.core.dtypes.missing import isnull
1717
from pandas.core.dtypes.generic import ABCSeries
18-
from pandas.core.common import _maybe_box, _values_from_object, is_bool_indexer
18+
from pandas.core.common import _maybe_box, _values_from_object
1919

2020
from pandas.core.indexes.base import Index
2121
from pandas.core.indexes.numeric import Int64Index

pandas/tests/indexes/timedeltas/test_timedelta.py

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def test_get_loc(self):
6666
for method, loc in [('pad', 1), ('backfill', 2), ('nearest', 1)]:
6767
assert idx.get_loc('1 day 1 hour', method) == loc
6868

69+
# GH 16909
6970
assert idx.get_loc(idx[1].to_timedelta64()) == 1
7071

7172
# GH 16896

0 commit comments

Comments
 (0)