📜  如何在python代码示例中将csv转换为excel

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

代码示例2
import pandas as pd

data = pd.read_csv("k.csv")

data.to_excel("new_file.xlsx", index=None, header=True)