📜  pandas 将值添加到 excel 列并保存 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:05.845000             🧑  作者: Mango

代码示例1
import pandas as pd;
df = pd.read_excel("./YourExcel.xlsx");
YourDataInAList = [12.34,17.56,12.45];
df = df.append({"ColumnName": YourDataInAList}, ignore_index=True)
df.to_excel("./YourNewExcel.xlsx",index=False);