Out of memory while reading excel file

Mahmood Naderan nt_mahmood at yahoo.com
Thu May 11 01:27:20 EDT 2017


>a = numpy.zeros((ws.max_row, ws.max_column), dtype=float)
>for y, row in enumerate(ws.rows):
>   a[y] = [cell.value for cell in row]



Peter, 

As I used this code, it gave me an error that cannot convert string to float for the first cell. All cells are strings.

 
Regards,
Mahmood



More information about the Python-list mailing list