Код: Выделить всё
"==CNAME=="
""
"Tool Name","v2.1"
"Name:","MATT B"
"E-Mail:","MATTB@EMAIL.COM"
"Phone Number:","987654321"
""
Код: Выделить всё
import pandas as pd
import os
def convert_csv_to_xlsx(csv_file_path):
csv_file = r"C:\Users\aztec\Desktop\del.csv"
df_csv = pd.read_csv(csv_file)
excel_file = os.path.splitext(csv_file)[0] + '.xlsx'
df_csv.to_excel(excel_file, index=False)
return excel_file
Код: Выделить всё
Error reading the CSV file, Error tokenizing data. C error: Expected 1 fields in line 3, saw 2
Подробнее здесь: https://stackoverflow.com/questions/792 ... ses-errors
Мобильная версия