v2.6 ValueError: Cannot convert xxx to Excel

Issue #1210 resolved
Shahar Dolev
created an issue

Trying to set:

ws.cell(row=r, column=2).value = x[i]

receiving assert: "ValueError: Cannot convert xxx to Excel"

I'm using numpy on windows, 'x' is a numpy.float64, however, NUMERIC_TYPES includes only numpy.floating. Hence on cell.py, line 196, doesn't catch float64 and the code reaches line 218:

raise ValueError("Cannot convert {0!r} to Excel".format(value))

Comments (2)

  1. Log in to comment