def xls(): df = ts.get_hist_data('000875') #???? df.to_excel('c:/day/000875.xlsx', startrow=2,startcol=5)