Skip to content

Commit 24521a9

Browse files
committed
Use a nonempty index in _maybe_partial_time_string
Fixes the regression due to pandas-dev/pandas#14354.
1 parent 588d701 commit 24521a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dask/dataframe/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ def _loc(self, ind):
642642
if isinstance(ind, Series):
643643
return self._loc_series(ind)
644644
if self.known_divisions:
645-
ind = _maybe_partial_time_string(self._meta.index, ind, kind='loc')
645+
ind = _maybe_partial_time_string(self._meta_nonempty.index, ind, kind='loc')
646646
if isinstance(ind, slice):
647647
return self._loc_slice(ind)
648648
else:

0 commit comments

Comments
 (0)