@@ -1709,14 +1709,14 @@ cdef class _Period:
1709
1709
1710
1710
def asfreq (self , freq , how = ' E' ):
1711
1711
"""
1712
- Convert Period to desired frequency, either at the start or end of the
1713
- interval.
1712
+ Convert Period to desired frequency, at the start or end of the interval.
1714
1713
1715
1714
Parameters
1716
1715
----------
1717
- freq : string
1716
+ freq : str
1717
+ The desired frequency.
1718
1718
how : {'E', 'S', 'end', 'start'}, default 'end'
1719
- Start or end of the timespan
1719
+ Start or end of the timespan.
1720
1720
1721
1721
Returns
1722
1722
-------
@@ -1776,17 +1776,19 @@ cdef class _Period:
1776
1776
1777
1777
def to_timestamp (self , freq = None , how = ' start' , tz = None ):
1778
1778
"""
1779
- Return the Timestamp representation of the Period at the target
1780
- frequency at the specified end (how) of the Period.
1779
+ Return the Timestamp representation of the Period.
1780
+
1781
+ Uses the target frequency specified at the part of the period specified
1782
+ by `how`, which is either `Start` or `Finish`.
1781
1783
1782
1784
Parameters
1783
1785
----------
1784
- freq : string or DateOffset
1786
+ freq : str or DateOffset
1785
1787
Target frequency. Default is 'D' if self.freq is week or
1786
- longer and 'S' otherwise
1788
+ longer and 'S' otherwise.
1787
1789
how : str, default 'S' (start)
1788
- 'S', 'E'. Can be aliased as case insensitive
1789
- 'Start', 'Finish', 'Begin', 'End'
1790
+ One of 'S', 'E'. Can be aliased as case insensitive
1791
+ 'Start', 'Finish', 'Begin', 'End'.
1790
1792
1791
1793
Returns
1792
1794
-------
@@ -2385,16 +2387,25 @@ class Period(_Period):
2385
2387
Parameters
2386
2388
----------
2387
2389
value : Period or str, default None
2388
- The time period represented (e.g., '4Q2005')
2390
+ The time period represented (e.g., '4Q2005').
2389
2391
freq : str, default None
2390
- One of pandas period strings or corresponding objects
2392
+ One of pandas period strings or corresponding objects.
2393
+ ordinal : int, default None
2394
+ The period offset from the gregorian proleptic epoch.
2391
2395
year : int, default None
2396
+ Year value of the period.
2392
2397
month : int, default 1
2398
+ Month value of the period.
2393
2399
quarter : int, default None
2400
+ Quarter value of the period.
2394
2401
day : int, default 1
2402
+ Day value of the period.
2395
2403
hour : int, default 0
2404
+ Hour value of the period.
2396
2405
minute : int, default 0
2406
+ Minute value of the period.
2397
2407
second : int, default 0
2408
+ Second value of the period.
2398
2409
"""
2399
2410
2400
2411
def __new__ (cls , value = None , freq = None , ordinal = None ,
0 commit comments