打开主菜单
更改
使用Pandas添加List
添加58字节
,
2022年10月4日 (二) 19:55
无编辑摘要
df.columns = ['自然数', '平方值'] # 给DataFrame添加columns
df.to_excel(r'C:\GITPythonLesson\num.xlsx',sheet_name='Sheet1',engine='openpyxl')
输出结果为下图:
[[File:PandasAppendList1.png]]
←上一编辑
下一编辑→
Ytyzx
行政员
,
管理员
1,138
个编辑