From 9f065ee1f32efac22620fbe3c4d6aa0eae8a74d7 Mon Sep 17 00:00:00 2001 From: gfyoung Date: Wed, 2 Jan 2019 23:28:02 -0800 Subject: [PATCH] DOC: Correct description of day_opt in shift_month --- pandas/_libs/tslibs/offsets.pyx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 11ce539d25767..0ca9410df89c0 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -847,11 +847,15 @@ def shift_month(stamp: datetime, months: int, ---------- stamp : datetime or Timestamp months : int - day_opt : None, 'start', 'end', or an integer + day_opt : None, 'start', 'end', 'business_start', 'business_end', or int None: returned datetimelike has the same day as the input, or the last day of the month if the new month is too short 'start': returned datetimelike has day=1 'end': returned datetimelike has day on the last day of the month + 'business_start': returned datetimelike has day on the first + business day of the month + 'business_end': returned datetimelike has day on the last + business day of the month int: returned datetimelike has day equal to day_opt Returns