Permalink
Browse files

Use a nonempty index in _maybe_partial_time_string

Fixes the regression due to
pandas-dev/pandas#14354.
  • Loading branch information...
jcrist committed Oct 6, 2016
1 parent 53400cf commit 10af53a5cdad4e81fa252b0db8d0c68cef3e72cf
Showing with 1 addition and 1 deletion.
  1. +1 −1 dask/dataframe/core.py
View
@@ -631,7 +631,7 @@ def _loc(self, ind):
if isinstance(ind, Series):
return self._loc_series(ind)
if self.known_divisions:
ind = _maybe_partial_time_string(self._meta.index, ind, kind='loc')
ind = _maybe_partial_time_string(self._meta_nonempty.index, ind, kind='loc')
if isinstance(ind, slice):
return self._loc_slice(ind)
else:

0 comments on commit 10af53a

Please sign in to comment.