From 0c09d203c9e4337687f2e8954330a3a8049caece Mon Sep 17 00:00:00 2001 From: Vallala Rishwanth Date: Tue, 16 Jan 2024 20:22:03 +0530 Subject: [PATCH] Fix documentation for the origin argument --- pandas/core/generic.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 81ffb243cd302..30ca2fb23d13d 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9454,14 +9454,14 @@ 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