Skip to content

Commit 80644a8

Browse files
committed
fix Docstring validation err
1 parent 1f0ffad commit 80644a8

File tree

1 file changed

+42
-31
lines changed

1 file changed

+42
-31
lines changed

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 42 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,8 @@ cdef class _Timestamp(ABCTimestamp):
832832

833833
See Also
834834
--------
835-
pandas.Timestamp.day_name : Returns the name of the day of the week.
836-
pandas.Timestamp.strftime : Returns a formatted string of the Timestamp.
835+
Timestamp.day_name : Returns the name of the day of the week.
836+
Timestamp.strftime : Returns a formatted string of the Timestamp.
837837
datetime.datetime.strftime : Returns a string representing the date and time.
838838

839839
Examples
@@ -942,8 +942,8 @@ cdef class _Timestamp(ABCTimestamp):
942942

943943
See Also
944944
--------
945-
pandas.Timestamp.month : Returns the month of the `Timestamp`.
946-
pandas.Timestamp.year : Returns the year of the `Timestamp`.
945+
Timestamp.month : Returns the month of the `Timestamp`.
946+
Timestamp.year : Returns the year of the `Timestamp`.
947947

948948
Examples
949949
--------
@@ -1023,9 +1023,9 @@ cdef class _Timestamp(ABCTimestamp):
10231023

10241024
See Also
10251025
--------
1026-
pandas.Timestamp.floor : Rounds `Timestamp` down to the nearest frequency.
1027-
pandas.Timestamp.ceil : Rounds `Timestamp` up to the nearest frequency.
1028-
pandas.Timestamp.round : Rounds `Timestamp` to the nearest frequency.
1026+
Timestamp.floor : Rounds `Timestamp` down to the nearest frequency.
1027+
Timestamp.ceil : Rounds `Timestamp` up to the nearest frequency.
1028+
Timestamp.round : Rounds `Timestamp` to the nearest frequency.
10291029

10301030
Examples
10311031
--------
@@ -1274,10 +1274,10 @@ cdef class _Timestamp(ABCTimestamp):
12741274

12751275
See Also
12761276
--------
1277-
pandas.Timestamp.fromtimestamp : Construct a `Timestamp` from a POSIX timestamp.
1277+
Timestamp.fromtimestamp : Construct a `Timestamp` from a POSIX timestamp.
12781278
datetime.datetime.timestamp : Equivalent method from the `datetime` module.
1279-
pandas.Timestamp.to_pydatetime : Convert the `Timestamp` to a `datetime` object.
1280-
pandas.Timestamp.to_datetime64 : Converts `Timestamp` to `numpy.datetime64`.
1279+
Timestamp.to_pydatetime : Convert the `Timestamp` to a `datetime` object.
1280+
Timestamp.to_datetime64 : Converts `Timestamp` to `numpy.datetime64`.
12811281

12821282
Examples
12831283
--------
@@ -1414,9 +1414,9 @@ cdef class _Timestamp(ABCTimestamp):
14141414

14151415
See Also
14161416
--------
1417-
pandas.Timestamp : Represents a specific timestamp.
1418-
pandas.Period : Represents a span of time.
1419-
pandas.to_period : Converts an object to a Period.
1417+
Timestamp : Represents a specific timestamp.
1418+
Period : Represents a span of time.
1419+
to_period : Converts an object to a Period.
14201420

14211421
Examples
14221422
--------
@@ -1572,15 +1572,15 @@ class Timestamp(_Timestamp):
15721572
Timestamp
15731573
A `Timestamp` object representing the specified ordinal date.
15741574

1575+
See Also
1576+
--------
1577+
Timestamp : Represents a single timestamp, similar to `datetime`.
1578+
to_datetime : Converts various types of data to datetime.
1579+
15751580
Notes
15761581
-----
15771582
By definition there cannot be any tz info on the ordinal itself.
15781583

1579-
See Also
1580-
--------
1581-
pandas.Timestamp : Represents a single timestamp, similar to `datetime`.
1582-
pandas.to_datetime : Converts various types of data to datetime.
1583-
15841584
Examples
15851585
--------
15861586
Convert an ordinal to a `Timestamp`:
@@ -1762,8 +1762,8 @@ class Timestamp(_Timestamp):
17621762

17631763
See Also
17641764
--------
1765-
pandas.Timestamp : Represents a single timestamp, similar to `datetime`.
1766-
pandas.to_datetime : Converts various types of data to datetime.
1765+
Timestamp : Represents a single timestamp, similar to `datetime`.
1766+
to_datetime : Converts various types of data to datetime.
17671767
datetime.datetime.fromtimestamp : Returns a datetime from a POSIX timestamp.
17681768

17691769
Examples
@@ -1836,7 +1836,7 @@ class Timestamp(_Timestamp):
18361836
See Also
18371837
--------
18381838
time.ctime : Return a string representing time in ctime format.
1839-
pandas.Timestamp : Represents a single timestamp, similar to `datetime`.
1839+
Timestamp : Represents a single timestamp, similar to `datetime`.
18401840
datetime.datetime.ctime : Return a ctime style string from a datetime object.
18411841

18421842
Examples
@@ -1874,7 +1874,7 @@ class Timestamp(_Timestamp):
18741874

18751875
See Also
18761876
--------
1877-
pandas.Timestamp : Represents a single timestamp, similar to `datetime`.
1877+
Timestamp : Represents a single timestamp, similar to `datetime`.
18781878
datetime.datetime.date : Extract the date component from a `datetime` object.
18791879

18801880
Examples
@@ -2066,7 +2066,7 @@ class Timestamp(_Timestamp):
20662066
See Also
20672067
--------
20682068
time.localtime : Converts a POSIX timestamp into a time tuple.
2069-
pandas.Timestamp : The `Timestamp` that represents a specific point in time.
2069+
Timestamp : The `Timestamp` that represents a specific point in time.
20702070
datetime.datetime.timetuple : Equivalent method in the `datetime` module.
20712071

20722072
Examples
@@ -2115,8 +2115,8 @@ class Timestamp(_Timestamp):
21152115
See Also
21162116
--------
21172117
datetime.datetime.toordinal : Equivalent method in the `datetime` module.
2118-
pandas.Timestamp : The `Timestamp` that represents a specific point in time.
2119-
pandas.Timestamp.fromordinal : Create a `Timestamp` from an ordinal.
2118+
Timestamp : The `Timestamp` that represents a specific point in time.
2119+
Timestamp.fromordinal : Create a `Timestamp` from an ordinal.
21202120

21212121
Examples
21222122
--------
@@ -2181,8 +2181,8 @@ class Timestamp(_Timestamp):
21812181

21822182
See Also
21832183
--------
2184-
pandas.Timestamp : Represents a single timestamp, similar to `datetime`.
2185-
pandas.to_datetime : Converts various types of data to datetime.
2184+
Timestamp : Represents a single timestamp, similar to `datetime`.
2185+
to_datetime : Converts various types of data to datetime.
21862186

21872187
Examples
21882188
--------
@@ -2939,7 +2939,18 @@ default 'raise'
29392939

29402940
Returns
29412941
-------
2942-
Timestamp with fields replaced
2942+
Timestamp
2943+
A new `Timestamp` object with the specified fields replaced.
2944+
2945+
See Also
2946+
--------
2947+
Timestamp : Represents a single timestamp, similar to `datetime`.
2948+
to_datetime : Converts various types of data to datetime.
2949+
2950+
Notes
2951+
-----
2952+
The `replace` method does not perform timezone conversions. If you need
2953+
to convert the timezone, use the `tz_convert` method instead.
29432954

29442955
Examples
29452956
--------
@@ -3066,9 +3077,9 @@ default 'raise'
30663077

30673078
See Also
30683079
--------
3069-
pandas.Timestamp.toordinal : Return proleptic Gregorian ordinal.
3070-
pandas.Timestamp.timestamp : Return POSIX timestamp as float.
3071-
pandas.Timestamp : Represents a single timestamp.
3080+
Timestamp.toordinal : Return proleptic Gregorian ordinal.
3081+
Timestamp.timestamp : Return POSIX timestamp as float.
3082+
Timestamp : Represents a single timestamp.
30723083

30733084
Examples
30743085
--------

0 commit comments

Comments
 (0)