Skip to content
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions pandas/plotting/_matplotlib/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def maybe_resample(series: Series, ax: Axes, kwargs: dict[str, Any]):

if ax_freq is not None and freq != ax_freq:
if is_superperiod(freq, ax_freq): # upsample input
series = series.copy()
series = series.copy(deep=False)
# error: "Index" has no attribute "asfreq"
series.index = series.index.asfreq( # type: ignore[attr-defined]
ax_freq, how="s"
Expand Down Expand Up @@ -142,7 +142,7 @@ def _replot_ax(ax: Axes, freq: BaseOffset):
labels = []
if data is not None:
for series, plotf, kwds in data:
series = series.copy()
series = series.copy(deep=False)
idx = series.index.asfreq(freq, how="S")
series.index = idx
# TODO #54485
Expand Down
Loading