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
TypeError when writing to excel using numpy.timedelta64 #3372
Comments
I am not sure that |
FYI..I answered your SO question |
Thank you much. I have already selected your answer and gave it an up vote. I appreciate the help! I will see if I can find out about |
np...since you are writing |
any luck with xlwt/openpyxl? (what do they support for a timedetlta like value) |
I think you need to export as fractions of a day to excel |
Thank you for the help. I am looping back to this now and I will report back shortly. |
There no longer a If there is still an issue with I vote to close this. |
Openpyxl has gotten back to me. They are willing to work with up to deal with timedela64 in numpy/pandas. I would vote for h:mm:ss format. Any thoughts? https://bitbucket.org/ericgazoni/openpyxl/issue/198/numpytimedelta64-and-openpyxl |
you can have days.hours,minutes,seconds,partial seconds best prob to keep it in nano seconds and just a format |
I too have this problem with a certain type (q.qtypes.q_none from a kdb q python interface). I am surprised by this behaviour of openpyxl. It should be possible to output to excel any data type, some special value if the rule is not known in the worst case. It seems quite difficult to fix this problem. |
Let me start by saying that I apologize if this is already on your radar. I looked, but could not find a similar issue. When I try to write out numpy.timedelta64 to excel I get the following error:
My code to generate this error is as follows:
There is an easy workaround. I can convert the delta to a string in my code. I just wondered if this was expected behavior?
The text was updated successfully, but these errors were encountered: