From a3e133abe618b11f4e9e28c4b82a8296cf946e58 Mon Sep 17 00:00:00 2001 From: RajatS Mukherjee Date: Tue, 27 Jun 2023 08:37:20 +0000 Subject: [PATCH] Updated docstring for Period class --- pandas/_libs/tslibs/period.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index 2edb93e998255..d4997b5f00975 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -2674,7 +2674,7 @@ class Period(_Period): freq : str, default None One of pandas period strings or corresponding objects. Accepted strings are listed in the - :ref:`offset alias section ` in the user docs. + :ref:`period alias section ` in the user docs. If value is datetime, freq is required. ordinal : int, default None The period offset from the proleptic Gregorian epoch.