diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 81ffb243cd302..41bd3436372b8 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9454,14 +9454,15 @@ def resample( origin : Timestamp or str, default 'start_day' The timestamp on which to adjust the grouping. The timezone of origin must match the timezone of the index. - If string, must be one of the following: + + If a string, it should be either a timestamp convertible string or + one of the following predefined options: + - 'epoch': origin is 1970-01-01 + - 'start': origin is the first value of the timeseries + - 'start_day': origin is the first day at midnight of the timeseries + - 'end': origin is the last value of the timeseries + - 'end_day': origin is the ceiling midnight of the last day - - 'epoch': `origin` is 1970-01-01 - - 'start': `origin` is the first value of the timeseries - - 'start_day': `origin` is the first day at midnight of the timeseries - - - 'end': `origin` is the last value of the timeseries - - 'end_day': `origin` is the ceiling midnight of the last day .. versionadded:: 1.3.0