Skip to content

Commit cf79ac8

Browse files
DOC: fix RT03, ES01 for pandas.core.resample.Resampler.ffill (#59871)
1 parent e221fa4 commit cf79ac8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
155155
-i "pandas.core.groupby.SeriesGroupBy.plot PR02" \
156156
-i "pandas.core.groupby.SeriesGroupBy.sem SA01" \
157157
-i "pandas.core.resample.Resampler.__iter__ RT03,SA01" \
158-
-i "pandas.core.resample.Resampler.ffill RT03" \
159158
-i "pandas.core.resample.Resampler.get_group RT03,SA01" \
160159
-i "pandas.core.resample.Resampler.groups SA01" \
161160
-i "pandas.core.resample.Resampler.indices SA01" \

pandas/core/resample.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,14 +529,20 @@ def ffill(self, limit: int | None = None):
529529
"""
530530
Forward fill the values.
531531
532+
This method fills missing values by propagating the last valid
533+
observation forward, up to the next valid observation. It is commonly
534+
used in time series analysis when resampling data to a higher frequency
535+
(upsampling) and filling gaps in the resampled output.
536+
532537
Parameters
533538
----------
534539
limit : int, optional
535540
Limit of how many values to fill.
536541
537542
Returns
538543
-------
539-
An upsampled Series.
544+
Series
545+
The resampled data with missing values filled forward.
540546
541547
See Also
542548
--------

0 commit comments

Comments
 (0)