diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index 2ec0649110948..e7b93f9f67cfe 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -2664,6 +2664,7 @@ class Period(_Period): One of pandas period strings or corresponding objects. Accepted strings are listed in the :ref:`offset 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. year : int, default None diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index f40d63c8b8128..fd7cab0344e42 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -478,7 +478,7 @@ def period_range( ---------- start : str, datetime, date, pandas.Timestamp, or period-like, default None Left bound for generating periods. - end : str or period-like, default None + end : str, datetime, date, pandas.Timestamp, or period-like, default None Right bound for generating periods. periods : int, default None Number of periods to generate.