📜  python openpyxl csv to excel - Python 代码示例

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

代码示例1
import pandas as pd

read_file = pd.read_csv (r'Path where the CSV file is stored\File name.csv')
read_file.to_excel (r'Path to store the Excel file\File name.xlsx', index = None, header=True)