Skip to content

Commit 35b2aba

Browse files
reidy-pjreback
authored andcommitted
DOC: Add information on kind parameter to resample docstring (#19084)
1 parent acbfdf8 commit 35b2aba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/core/generic.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5724,6 +5724,10 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
57245724
convention : {'start', 'end', 's', 'e'}
57255725
For PeriodIndex only, controls whether to use the start or end of
57265726
`rule`
5727+
kind: {'timestamp', 'period'}, optional
5728+
Pass 'timestamp' to convert the resulting index to a
5729+
``DateTimeIndex`` or 'period' to convert it to a ``PeriodIndex``.
5730+
By default the input representation is retained.
57275731
loffset : timedelta
57285732
Adjust the resampled time labels
57295733
base : int, default 0

0 commit comments

Comments
 (0)