Skip to content

Commit 4cb55e5

Browse files
authored
DOC: Add missing single quote to Timestamp.tz_localize (#59472)
* Add missing single quote to docstring * More missing single quotes * Clean up a print statement
1 parent d093fae commit 4cb55e5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pandas/_libs/tslibs/nattype.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ class NaTType(_NaT):
10471047
* 'NaT' will return NaT for an ambiguous time.
10481048
* 'raise' will raise an AmbiguousTimeError for an ambiguous time.
10491049
1050-
nonexistent : {'raise', 'shift_forward', 'shift_backward, 'NaT', \
1050+
nonexistent : {'raise', 'shift_forward', 'shift_backward', 'NaT', \
10511051
timedelta}, default 'raise'
10521052
A nonexistent time does not exist in a particular timezone
10531053
where clocks moved forward due to DST.
@@ -1148,7 +1148,7 @@ timedelta}, default 'raise'
11481148
* 'NaT' will return NaT for an ambiguous time.
11491149
* 'raise' will raise an AmbiguousTimeError for an ambiguous time.
11501150
1151-
nonexistent : {'raise', 'shift_forward', 'shift_backward, 'NaT', \
1151+
nonexistent : {'raise', 'shift_forward', 'shift_backward', 'NaT', \
11521152
timedelta}, default 'raise'
11531153
A nonexistent time does not exist in a particular timezone
11541154
where clocks moved forward due to DST.
@@ -1243,7 +1243,7 @@ timedelta}, default 'raise'
12431243
* 'NaT' will return NaT for an ambiguous time.
12441244
* 'raise' will raise an AmbiguousTimeError for an ambiguous time.
12451245
1246-
nonexistent : {'raise', 'shift_forward', 'shift_backward, 'NaT', \
1246+
nonexistent : {'raise', 'shift_forward', 'shift_backward', 'NaT', \
12471247
timedelta}, default 'raise'
12481248
A nonexistent time does not exist in a particular timezone
12491249
where clocks moved forward due to DST.
@@ -1407,7 +1407,7 @@ timedelta}, default 'raise'
14071407
* 'NaT' will return NaT for an ambiguous time.
14081408
* 'raise' will raise an AmbiguousTimeError for an ambiguous time.
14091409
1410-
nonexistent : 'shift_forward', 'shift_backward, 'NaT', timedelta, \
1410+
nonexistent : 'shift_forward', 'shift_backward', 'NaT', timedelta, \
14111411
default 'raise'
14121412
A nonexistent time does not exist in a particular timezone
14131413
where clocks moved forward due to DST.

pandas/_libs/tslibs/timestamps.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -2106,7 +2106,7 @@ class Timestamp(_Timestamp):
21062106
* 'NaT' will return NaT for an ambiguous time.
21072107
* 'raise' will raise an AmbiguousTimeError for an ambiguous time.
21082108
2109-
nonexistent : {'raise', 'shift_forward', 'shift_backward, 'NaT', \
2109+
nonexistent : {'raise', 'shift_forward', 'shift_backward', 'NaT', \
21102110
timedelta}, default 'raise'
21112111
A nonexistent time does not exist in a particular timezone
21122112
where clocks moved forward due to DST.
@@ -2209,7 +2209,7 @@ timedelta}, default 'raise'
22092209
* 'NaT' will return NaT for an ambiguous time.
22102210
* 'raise' will raise an AmbiguousTimeError for an ambiguous time.
22112211
2212-
nonexistent : {'raise', 'shift_forward', 'shift_backward, 'NaT', \
2212+
nonexistent : {'raise', 'shift_forward', 'shift_backward', 'NaT', \
22132213
timedelta}, default 'raise'
22142214
A nonexistent time does not exist in a particular timezone
22152215
where clocks moved forward due to DST.
@@ -2304,7 +2304,7 @@ timedelta}, default 'raise'
23042304
* 'NaT' will return NaT for an ambiguous time.
23052305
* 'raise' will raise an AmbiguousTimeError for an ambiguous time.
23062306
2307-
nonexistent : {'raise', 'shift_forward', 'shift_backward, 'NaT', \
2307+
nonexistent : {'raise', 'shift_forward', 'shift_backward', 'NaT', \
23082308
timedelta}, default 'raise'
23092309
A nonexistent time does not exist in a particular timezone
23102310
where clocks moved forward due to DST.
@@ -2443,7 +2443,7 @@ timedelta}, default 'raise'
24432443
* 'NaT' will return NaT for an ambiguous time.
24442444
* 'raise' will raise an AmbiguousTimeError for an ambiguous time.
24452445
2446-
nonexistent : 'shift_forward', 'shift_backward, 'NaT', timedelta, \
2446+
nonexistent : 'shift_forward', 'shift_backward', 'NaT', timedelta, \
24472447
default 'raise'
24482448
A nonexistent time does not exist in a particular timezone
24492449
where clocks moved forward due to DST.

0 commit comments

Comments
 (0)