@@ -993,7 +993,7 @@ def tz_localize(self, tz, ambiguous="raise", nonexistent="raise", errors=None):
993
993
ambiguous times)
994
994
- 'NaT' will return NaT where there are ambiguous times
995
995
- 'raise' will raise an AmbiguousTimeError if there are ambiguous
996
- times
996
+ times.
997
997
998
998
nonexistent : 'shift_forward', 'shift_backward, 'NaT', timedelta, \
999
999
default 'raise'
@@ -1007,11 +1007,12 @@ def tz_localize(self, tz, ambiguous="raise", nonexistent="raise", errors=None):
1007
1007
- 'NaT' will return NaT where there are nonexistent times
1008
1008
- timedelta objects will shift nonexistent times by the timedelta
1009
1009
- 'raise' will raise an NonExistentTimeError if there are
1010
- nonexistent times
1010
+ nonexistent times.
1011
1011
1012
1012
.. versionadded:: 0.24.0
1013
1013
1014
1014
errors : {'raise', 'coerce'}, default None
1015
+ The method to handle errors:
1015
1016
1016
1017
- 'raise' will raise a NonExistentTimeError if a timestamp is not
1017
1018
valid in the specified time zone (e.g. due to a transition from
@@ -1871,7 +1872,7 @@ def sequence_to_dt64ns(
1871
1872
dayfirst : bool, default False
1872
1873
yearfirst : bool, default False
1873
1874
ambiguous : str, bool, or arraylike, default 'raise'
1874
- See pandas._libs.tslibs.conversion.tz_localize_to_utc
1875
+ See pandas._libs.tslibs.conversion.tz_localize_to_utc.
1875
1876
int_as_wall_time : bool, default False
1876
1877
Whether to treat ints as wall time in specified timezone, or as
1877
1878
nanosecond-precision UNIX epoch (wall time in UTC).
@@ -2015,7 +2016,7 @@ def objects_to_datetime64ns(
2015
2016
dayfirst : bool
2016
2017
yearfirst : bool
2017
2018
utc : bool, default False
2018
- Whether to convert timezone-aware timestamps to UTC
2019
+ Whether to convert timezone-aware timestamps to UTC.
2019
2020
errors : {'raise', 'ignore', 'coerce'}
2020
2021
allow_object : bool
2021
2022
Whether to return an object-dtype ndarray instead of raising if the
0 commit comments