阅读背景:

使用pandas将工作表添加到现有Excel文件

来源:互联网 
# Set the working folder to the same folder as the script
os.chdir(os.path.dirname(os.path.abspath(__file__)))

test = send_request().content
df = pd.read_csv(io.StringIO(test.decode('utf-8')))
writer = pd.ExcelWriter('NHL_STATS_JSB_final.xlsx', \
                        engine = 'xlsxwriter')
df.to_excel(writer, 'Player statistics', index=False)
writer.save()
# Set the working folder to the same folder as 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: