diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst index a129b75636536..4cf8db895f0ac 100644 --- a/doc/source/reference/arrays.rst +++ b/doc/source/reference/arrays.rst @@ -259,7 +259,7 @@ Every period in a ``PeriodArray`` must have the same ``freq``. .. autosummary:: :toctree: api/ - arrays.DatetimeArray + arrays.PeriodArray PeriodDtype .. _api.arrays.interval: diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index 3ddceb8c2839d..12d36695f5b79 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -104,13 +104,16 @@ class PeriodArray(dtl.DatetimeLikeArrayMixin, dtl.DatelikeOps): is an ndarray of integers, when `freq` is required. When `values` is a PeriodArray (or box around), it's checked that ``values.freq`` matches `freq`. + dtype : PeriodDtype, optional + A PeriodDtype instance from which to extract a `freq`. If both + `freq` and `dtype` are specified, then the frequencies must match. copy : bool, default False Whether to copy the ordinals before storing. See Also -------- period_array : Create a new PeriodArray. - pandas.PeriodIndex : Immutable Index for period data. + PeriodIndex : Immutable Index for period data. Notes -----