Skip to content

Commit 5b09b0c

Browse files
committed
freq shift
1 parent 7bd594c commit 5b09b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5705,7 +5705,7 @@ def shift(
57055705
"Passing a 'freq' together with a 'fill_value' is not allowed."
57065706
)
57075707

5708-
if self.empty:
5708+
if self.empty and freq is None:
57095709
return self.copy()
57105710

57115711
axis = self._get_axis_number(axis)

0 commit comments

Comments
 (0)