Skip to content

Commit a1fea06

Browse files
committed
troubleshoot
1 parent dcc985e commit a1fea06

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/core/arrays/datetimelike.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ def take(self, indices, allow_fill=False, fill_value=None):
185185
indices,
186186
allow_fill=allow_fill,
187187
fill_value=fill_value)
188-
freq = self.freq if is_period_dtype(self) else None # TODO: use "infer"?
188+
189+
# TODO: use "infer"? Why does not passing freq cause
190+
# failures in py37 but not py27?
191+
freq = self.freq if is_period_dtype(self) else None
189192
return self._shallow_copy(new_values, freq=freq)
190193

191194
@classmethod

0 commit comments

Comments
 (0)