Faster way to read Excel files to pandas dataframe
Faster way to read Excel files to pandas dataframe Question: I have a 14MB Excel file with five worksheets that I’m reading into a Pandas dataframe, and although the code below works, it takes 9 minutes! Does anyone have suggestions for speeding it up? import pandas as pd def OTT_read(xl,site_name): df = pd.read_excel(xl.io,site_name,skiprows=2,parse_dates=0,index_col=0, usecols=[0,1,2],header=None, names=[‘date_time’,’%s_depth’%site_name,’%s_temp’%site_name]) …