Answers for "where should i put my excel csv file for python to read"

11

Convert Excel to CSV using Python

import pandas as pd
data_xls = pd.read_excel('excelfile.xlsx', 'Sheet2', dtype=str, index_col=None)
data_xls.to_csv('csvfile.csv', encoding='utf-8', index=False)
Posted by: Guest on December-13-2020
0

python openpyxl csv to excel

import pandas as pd

read_file = pd.read_csv (r'Path where the CSV file is storedFile name.csv')
read_file.to_excel (r'Path to store the Excel fileFile name.xlsx', index = None, header=True)
Posted by: Guest on March-24-2021

Code answers related to "where should i put my excel csv file for python to read"

Python Answers by Framework

Browse Popular Code Answers by Language