Skip to content
Merged
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -5705,7 +5705,7 @@ def shift(
"Passing a 'freq' together with a 'fill_value' is not allowed."
)

if self.empty:
if self.empty and freq is None:
return self.copy()

axis = self._get_axis_number(axis)
Expand Down
Loading