Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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