Skip to content
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

Timedelta must be real number #1991

Closed
akald opened this issue Aug 13, 2022 · 1 comment · Fixed by #1995
Closed

Timedelta must be real number #1991

akald opened this issue Aug 13, 2022 · 1 comment · Fixed by #1995
Milestone

Comments

@akald
Copy link

akald commented Aug 13, 2022

I have a df where 1 column is a timedelta.

On the latest version of xlwings, on Windows 10, Python 3.8.10 when trying to view the df, I'm getting the error below.

view(df)
timedelta must be real number

But if I do df.to_excel(...) Excel is capable of reading a timedelta as a float which I can then manually format within Excel.

@fzumstein
Copy link
Member

I agree (unlike back then: #492) but I think the best default behavior would just be to write it out as string instead of converting it to seconds/hours/day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants