Reading part of a large xlsx file using python
2 answers
UPDATE: 2019-09-05
The parameter is chunksize
deprecated as it has not been used pd.read_excel()
due to the nature of the XLSX file format that will be read into memory in general during parsing.
More on this in this great SO answer ...
OLD answer:
You can use the read_excel () method :
chunksize = 10**5
for chunk in pd.read_excel(filename, chunksize=chunksize):
# process 'chunk' DF
if you have multiple sheets in your Excel file take a look at bpachev solution
0
source to share