-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
'remove_timezone' option not working for ExcelWriter with pandas 0.25.1 #28921
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
I think Remove_timezone is parameter for xlsxwriter engine and is getting passed as **enginekwargs. Nothing wrong in parameter passing. This issue is coming because |
I guess in the meantime manually removing the timezone information from the dataframe or series is my only option using |
@WillAyd @mroeschke Can you please suggest, what can be done here. |
You can remove the timezone before trying to save to Excel. How to do that is case-specific as to what you actually want. As requested the intent is ambiguous, so I don't see this as something that will be supported |
Agreed with @WillAyd. Additionally, this behavior change was described generally in |
Problem description
pd.ExcelWriter has a 'remove_timezone' option which removes the timezone information when printing out dataframes or series to excel using the pd.to_excel function. Thus allowing datetimes with timezone information to be written to excel files without their timezone information. Since upgrading pandas from 0.24.2 to 0.25.1, this functionality has stopped working and gives me the error below.
Code Sample, which recreates the error.
Package list
Error Message
The text was updated successfully, but these errors were encountered: