Skip to content

Commit d7ce2ce

Browse files
Fix typo in docstring example (#56833)
Fix typo in docstring The words "upsample" and "downsample" were switched.
1 parent 0ad26c6 commit d7ce2ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/resample.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1039,15 +1039,15 @@ def interpolate(
10391039
2023-03-01 07:00:04 3
10401040
Freq: s, dtype: int64
10411041
1042-
Upsample the dataframe to 0.5Hz by providing the period time of 2s.
1042+
Downsample the dataframe to 0.5Hz by providing the period time of 2s.
10431043
10441044
>>> series.resample("2s").interpolate("linear")
10451045
2023-03-01 07:00:00 1
10461046
2023-03-01 07:00:02 2
10471047
2023-03-01 07:00:04 3
10481048
Freq: 2s, dtype: int64
10491049
1050-
Downsample the dataframe to 2Hz by providing the period time of 500ms.
1050+
Upsample the dataframe to 2Hz by providing the period time of 500ms.
10511051
10521052
>>> series.resample("500ms").interpolate("linear")
10531053
2023-03-01 07:00:00.000 1.0

0 commit comments

Comments
 (0)