Skip to content

CLN: Update imports #34554

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pandas/core/arrays/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def _generate_range(
index = cls._simple_new(values, freq=freq, dtype=tz_to_dtype(_tz))

if tz is not None and index.tz is None:
arr = conversion.tz_localize_to_utc(
arr = tzconversion.tz_localize_to_utc(
index.asi8, tz, ambiguous=ambiguous, nonexistent=nonexistent
)

Expand Down Expand Up @@ -967,7 +967,7 @@ def tz_localize(self, tz, ambiguous="raise", nonexistent="raise"):
tz = timezones.maybe_get_tz(tz)
# Convert to UTC

new_dates = conversion.tz_localize_to_utc(
new_dates = tzconversion.tz_localize_to_utc(
self.asi8, tz, ambiguous=ambiguous, nonexistent=nonexistent
)
new_dates = new_dates.view(DT64NS_DTYPE)
Expand Down Expand Up @@ -1881,7 +1881,7 @@ def sequence_to_dt64ns(
dayfirst : bool, default False
yearfirst : bool, default False
ambiguous : str, bool, or arraylike, default 'raise'
See pandas._libs.tslibs.conversion.tz_localize_to_utc.
See pandas._libs.tslibs.tzconversion.tz_localize_to_utc.

Returns
-------
Expand Down Expand Up @@ -1961,7 +1961,7 @@ def sequence_to_dt64ns(
if tz is not None:
# Convert tz-naive to UTC
tz = timezones.maybe_get_tz(tz)
data = conversion.tz_localize_to_utc(
data = tzconversion.tz_localize_to_utc(
data.view("i8"), tz, ambiguous=ambiguous
)
data = data.view(DT64NS_DTYPE)
Expand Down