@@ -1318,13 +1318,17 @@ cdef class _Timestamp(ABCTimestamp):
1318
1318
"""
1319
1319
Return a period of which this timestamp is an observation.
1320
1320
1321
- This method constructs a `Period` object from the `Timestamp` and provided period.
1322
- Please note that timezone information will be dropped, since `Period` doesn't support timezones.
1321
+ This method constructs a `Period` object from the `Timestamp`
1322
+ and provided period.
1323
+ Please note that timezone information will be dropped,
1324
+ since `Period` doesn't support timezones.
1323
1325
1324
1326
Parameters
1325
1327
----------
1326
1328
freq : str, default None
1327
- The period frequency. Accepted strings are listed in the :ref:`period alias section <timeseries.period_aliases>` in the user docs.
1329
+ The period frequency. Accepted strings are listed in
1330
+ the :ref:`period alias section <timeseries.period_aliases>`
1331
+ in the user docs.
1328
1332
1329
1333
See Also
1330
1334
--------
@@ -2629,7 +2633,8 @@ default 'raise'
2629
2633
"""
2630
2634
Implements datetime.replace, handles nanoseconds.
2631
2635
2632
- Returns a new timestamp with the same attributes, except for those given new value.
2636
+ Returns a new timestamp with the same attributes,
2637
+ except for those given new value.
2633
2638
2634
2639
Parameters
2635
2640
----------
@@ -2660,7 +2665,8 @@ default 'raise'
2660
2665
2661
2666
See Also
2662
2667
--------
2663
- Timestamp.normalize : Normalize the Timestamp to midnight, preserving tz information.
2668
+ Timestamp.normalize : Normalize the Timestamp to midnight,
2669
+ preserving tz information.
2664
2670
Timestamp.tz_convert : Convert timezone-aware Timestamp to another time zone.
2665
2671
Timestamp.tz_localize : Localize the Timestamp to a timezone.
2666
2672
datetime.datetime.replace : Return a new datetime with replaced attributes.
0 commit comments