Skip to content

Commit 224e1ba

Browse files
fix ci
1 parent 887f5fe commit 224e1ba

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -632,16 +632,15 @@ cdef class _Timestamp(ABCTimestamp):
632632

633633
Examples
634634
--------
635-
>>> ts = pd.Timestamp('2024-08-23 14:30:15.123456')
636-
>>> ts.microsecond
637-
123456
635+
>>> ts = pd.Timestamp('2024-08-23 14:30:15.123456')
636+
>>> ts.microsecond
637+
123456
638638
"""
639639
return self.microsecond
640640

641641
def max(self):
642642
"""
643-
A constant that represents the maximum valid date and time value for a
644-
pandas Timestamp object.
643+
A constant that represents the maximum valid date and time value.
645644
646645
This property returns the highest datetime value that can be represented
647646
by a pandas.Timestamp object, which is equivalent to
@@ -654,13 +653,12 @@ cdef class _Timestamp(ABCTimestamp):
654653
655654
See Also
656655
--------
657-
Timestamp.min : Return the minimum valid date and time value for
658-
pandas Timestamp object.
656+
Timestamp.min : Return the minimum valid date and time value for Timestamp.
659657
660658
Examples
661659
--------
662-
>>> pd.Timestamp.max
663-
Timestamp('2262-04-11 23:47:16.854775807')
660+
>>> pd.Timestamp.max
661+
Timestamp('2262-04-11 23:47:16.854775807')
664662
"""
665663
return max
666664

@@ -706,13 +704,13 @@ cdef class _Timestamp(ABCTimestamp):
706704

707705
Examples
708706
--------
709-
>>> ts = pd.Timestamp('2020-03-14T12:32:52.192548651')
710-
>>> ts.hour()
711-
12
707+
>>> ts = pd.Timestamp('2020-03-14T12:32:52.192548651')
708+
>>> ts.hour()
709+
12
712710

713-
>>> ts = pd.Timestamp('2020-03-14T22:43:12.192547851')
714-
>>> ts.hour()
715-
22
711+
>>> ts = pd.Timestamp('2020-03-14T22:43:12.192547851')
712+
>>> ts.hour()
713+
22
716714
"""
717715
return self.hour
718716

0 commit comments

Comments
 (0)