@@ -406,7 +406,7 @@ def _generate_range(
406
406
index = cls ._simple_new (values , freq = freq , dtype = tz_to_dtype (_tz ))
407
407
408
408
if tz is not None and index .tz is None :
409
- arr = conversion .tz_localize_to_utc (
409
+ arr = tzconversion .tz_localize_to_utc (
410
410
index .asi8 , tz , ambiguous = ambiguous , nonexistent = nonexistent
411
411
)
412
412
@@ -967,7 +967,7 @@ def tz_localize(self, tz, ambiguous="raise", nonexistent="raise"):
967
967
tz = timezones .maybe_get_tz (tz )
968
968
# Convert to UTC
969
969
970
- new_dates = conversion .tz_localize_to_utc (
970
+ new_dates = tzconversion .tz_localize_to_utc (
971
971
self .asi8 , tz , ambiguous = ambiguous , nonexistent = nonexistent
972
972
)
973
973
new_dates = new_dates .view (DT64NS_DTYPE )
@@ -1881,7 +1881,7 @@ def sequence_to_dt64ns(
1881
1881
dayfirst : bool, default False
1882
1882
yearfirst : bool, default False
1883
1883
ambiguous : str, bool, or arraylike, default 'raise'
1884
- See pandas._libs.tslibs.conversion .tz_localize_to_utc.
1884
+ See pandas._libs.tslibs.tzconversion .tz_localize_to_utc.
1885
1885
1886
1886
Returns
1887
1887
-------
@@ -1961,7 +1961,7 @@ def sequence_to_dt64ns(
1961
1961
if tz is not None :
1962
1962
# Convert tz-naive to UTC
1963
1963
tz = timezones .maybe_get_tz (tz )
1964
- data = conversion .tz_localize_to_utc (
1964
+ data = tzconversion .tz_localize_to_utc (
1965
1965
data .view ("i8" ), tz , ambiguous = ambiguous
1966
1966
)
1967
1967
data = data .view (DT64NS_DTYPE )
0 commit comments