Skip to content

Commit 73f8b97

Browse files
committed
Fix docstrings pre-commit.cierror
1 parent 9929ec6 commit 73f8b97

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/_libs/tslibs/period.pyx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,7 @@ cdef class _Period(PeriodMixin):
19131913
Parameters
19141914
----------
19151915
freq : str, BaseOffset
1916-
The target frequency to convert the Period object to.
1916+
The target frequency to convert the Period object to.
19171917
If a string is provided,
19181918
it must be a valid :ref:`period alias <timeseries.period_aliases>`.
19191919

@@ -1924,7 +1924,7 @@ cdef class _Period(PeriodMixin):
19241924

19251925
Returns
19261926
-------
1927-
Period : A new Period object with the specified frequency, aligned to the `how` parameter.
1927+
Period : Period object with the specified frequency, aligned to the parameter.
19281928

19291929
See Also
19301930
--------
@@ -1953,7 +1953,8 @@ cdef class _Period(PeriodMixin):
19531953
>>> period.asfreq('M', how='end')
19541954
Period('2023-12', 'M')
19551955

1956-
Convert a monthly period to an hourly period, aligning to the first day of the month:
1956+
Convert a monthly period to an hourly period,
1957+
aligning to the first day of the month:
19571958

19581959
>>> period = pd.Period('2023-01', freq='M')
19591960
>>> period.asfreq('h', how='start')
@@ -2067,7 +2068,7 @@ cdef class _Period(PeriodMixin):
20672068

20682069
Notes
20692070
-----
2070-
The month is determined based on the `ordinal` and `base` attributes of the Period.
2071+
The month is based on the `ordinal` and `base` attributes of the Period.
20712072

20722073
Examples
20732074
--------

0 commit comments

Comments
 (0)