-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Incorrect localization of naive time string with Series and datetime[ns, tz] dtype #17415
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
Comments
Weird and buggy...nice catch! PR to patch is welcome! |
Looks like the culprit is here. Not completely sure why the comment mentions things have to be UTC at this point but will attempt to change and see if anything breaks. |
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Sep 20, 2017
Merged
4 tasks
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Sep 21, 2017
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Nov 6, 2017
…type (pandas-dev#17415) Add whatsnew Fix lint error
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Nov 25, 2017
…type (pandas-dev#17415) Add whatsnew Fix lint error
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Nov 27, 2017
…type (pandas-dev#17415) Add whatsnew Fix lint error
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Dec 11, 2017
…type (pandas-dev#17415) Add whatsnew Fix lint error Rebase and move whatsnew note Move whatsnew and add tests
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Dec 12, 2017
…type (pandas-dev#17415) Add whatsnew Fix lint error Rebase and move whatsnew note Move whatsnew and add tests
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Dec 13, 2017
…type (pandas-dev#17415) Add whatsnew Fix lint error Rebase and move whatsnew note Move whatsnew and add tests
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Dec 14, 2017
…type (pandas-dev#17415) Add whatsnew Fix lint error Rebase and move whatsnew note Move whatsnew and add tests
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Jan 11, 2018
…type (pandas-dev#17415) Add whatsnew Fix lint error Rebase and move whatsnew note Move whatsnew and add tests
jreback
pushed a commit
that referenced
this issue
Jan 12, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description
It appears that a Series will localize a naive string to UTC first and then convert it to the specified timezone specified in
dtype
instead of immediately localizing the Series to the timezone.Note: It looks to work correctly for numeric timestamps:
Expected Output
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: