Skip to content

Commit dc5586b

Browse files
Will-Sodatapythonistamroeschke
authored
DOC : ambiguous takes bool as an argument, not bool-ndarray (#57015)
* ambiguous takes bool as an argument, not bool-ndarray ambiguous takes bool as an argument, not bool-ndarray * Update pandas/core/generic.py Co-authored-by: Matthew Roeschke <[email protected]> * Update pandas/core/generic.py Co-authored-by: Matthew Roeschke <[email protected]> --------- Co-authored-by: Marc Garcia <[email protected]> Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 1f8b763 commit dc5586b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/generic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11591,7 +11591,7 @@ def tz_localize(
1159111591
1159211592
You can already get the future behavior and improvements through
1159311593
enabling copy on write ``pd.options.mode.copy_on_write = True``
11594-
ambiguous : 'infer', bool-ndarray, 'NaT', default 'raise'
11594+
ambiguous : 'infer', bool, bool-ndarray, 'NaT', default 'raise'
1159511595
When clocks moved backward due to DST, ambiguous times may arise.
1159611596
For example in Central European Time (UTC+01), when going from
1159711597
03:00 DST to 02:00 non-DST, 02:30:00 local time occurs both at
@@ -11601,7 +11601,7 @@ def tz_localize(
1160111601
1160211602
- 'infer' will attempt to infer fall dst-transition hours based on
1160311603
order
11604-
- bool-ndarray where True signifies a DST time, False designates
11604+
- bool (or bool-ndarray) where True signifies a DST time, False designates
1160511605
a non-DST time (note that this flag is only applicable for
1160611606
ambiguous times)
1160711607
- 'NaT' will return NaT where there are ambiguous times

0 commit comments

Comments
 (0)