We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7f45ca commit a400887Copy full SHA for a400887
pandas/core/resample.py
@@ -2120,7 +2120,7 @@ def _adjust_dates_anchored(
2120
closed: Literal["right", "left"] = "right",
2121
origin: TimeGrouperOrigin = "start_day",
2122
offset: Timedelta | None = None,
2123
- unit="ns",
+ unit: str = "ns",
2124
) -> tuple[Timestamp, Timestamp]:
2125
# First and last offsets should be calculated from the start day to fix an
2126
# error cause by resampling across multiple days when a one day period is
0 commit comments