-
Notifications
You must be signed in to change notification settings - Fork 0
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
Usage manual would be nice #2
Comments
I see in the output: Where do I set the timezone option or any other options?! |
Hi, you can see usage with
The timezone option is:
Although I haven't seen the error, |
I will try the option -t TZ == TraditionalWASLogEntries == |
Here is the result with option -t: == TraditionalWASLogEntries == |
I can reproduce the issue. There was a change in Pandas 0.25.0 that causes this new exception:
I'll see what we can do... |
… change. The date is still correct and the timezone is in the column name.
I think it's fixed now. Please update and try again. |
Yes, it is fixed. Thank you. |
I have run it like this: python3 was.py SystemOut.mpm.log0
Receive the following error:
Writing TraditionalWASLogEntries.xlsx ... Traceback (most recent call last):
File "was.py", line 2014, in
print_data_frame(df, options, name)
File "was.py", line 1861, in print_data_frame
df.to_excel(writer, sheet_name=sheetname, freeze_panes=(df.columns.nlevels, df.index.nlevels))
File "/usr/lib64/python3.7/site-packages/pandas/core/generic.py", line 2256, in to_excel
engine=engine,
File "/usr/lib64/python3.7/site-packages/pandas/io/formats/excel.py", line 739, in write
freeze_panes=freeze_panes,
File "/usr/lib64/python3.7/site-packages/pandas/io/excel/_xlsxwriter.py", line 214, in write_cells
for cell in cells:
File "/usr/lib64/python3.7/site-packages/pandas/io/formats/excel.py", line 687, in get_formatted_cells
cell.val = self._format_value(cell.val)
File "/usr/lib64/python3.7/site-packages/pandas/io/formats/excel.py", line 437, in _format_value
"Excel does not support datetimes with "
ValueError: Excel does not support datetimes with timezones. Please ensure that datetimes are timezone unaware before writing to Excel.
The text was updated successfully, but these errors were encountered: