Skip to content

PERF: Enable %z in parsing datetime #32984

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 9 commits into from
Mar 29, 2020
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
reformat
  • Loading branch information
quangngd committed Mar 24, 2020
commit bd0e53551a978fc3db80a82b4eb69d784b07fb7d
4 changes: 1 addition & 3 deletions pandas/core/tools/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,7 @@ def _return_parsed_timezone_results(result, timezones, tz, name):
)
if tz is not None:
# GH 32792
tz_results = np.array(
[tz_result.astimezone(tz) for tz_result in tz_results]
)
tz_results = np.array([tz_result.astimezone(tz) for tz_result in tz_results])
from pandas import Index

return Index(tz_results, name=name)
Expand Down