Skip to content

Commit ef910b9

Browse files
authored
maint: pandas can now index with np.timedelta64 (#4546)
1 parent af71c84 commit ef910b9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

xarray/core/indexing.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ def _sanitize_slice_element(x):
6868
)
6969
x = x[()]
7070

71-
if isinstance(x, np.timedelta64):
72-
# pandas does not support indexing with np.timedelta64 yet:
73-
# https://github.com/pandas-dev/pandas/issues/20393
74-
x = pd.Timedelta(x)
75-
7671
return x
7772

7873

0 commit comments

Comments
 (0)