Skip to content

Commit a349462

Browse files
authored
DOC: update PeriodArray docstring (pandas-dev#37251)
1 parent 6ac3765 commit a349462

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pandas/core/arrays/period.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ class PeriodArray(PeriodMixin, dtl.DatelikeOps):
6767
"""
6868
Pandas ExtensionArray for storing Period data.
6969
70-
Users should use :func:`period_array` to create new instances.
70+
Users should use :func:`period_range` to create new instances.
71+
Alternatively, :func:`array` can be used to create new instances
72+
from a sequence of Period scalars.
7173
7274
Parameters
7375
----------
@@ -97,8 +99,10 @@ class PeriodArray(PeriodMixin, dtl.DatelikeOps):
9799
98100
See Also
99101
--------
100-
period_array : Create a new PeriodArray.
102+
Period: Represents a period of time.
101103
PeriodIndex : Immutable Index for period data.
104+
period_range: Create a fixed-frequency PeriodArray.
105+
array: Construct a pandas array.
102106
103107
Notes
104108
-----

0 commit comments

Comments
 (0)