openpyxl
openpyxl copied to clipboard
Question: What is the maximum of rows in a excel-sheet opened by openpyxl?
Hi there, i have an excel-sheet (.xslx) with more than 1.000.000 rows. Openpyxl reports max_row = 0 What is the maximum number openpyxl can handle? Thanks a lot! Andreas
The maximum number of rows it can handle is 1, 048, 576 rows. If you go outside this limit, it raises an exception: 'ValueError: Row numbers must be between 1 and 1048576'. This is also the limit for any excel sheet. What you could do is you can split the data into multiple sheets.