Python Как прочитать файл XLSX
import pandas as pd
df = pd.read_excel (r'Path where the Excel file is stored\File name.xlsx')
print (df)
Desert Trap
import pandas as pd
df = pd.read_excel (r'Path where the Excel file is stored\File name.xlsx')
print (df)
import pandas as pd
df = pd.read_excel (r'Path where the Excel file is stored\File name.xlsx', sheet_name='your Excel sheet name')
print (df)
df = pd.read_excel('Path.xlsx', sheet_name='Desired Sheet Name')
import pandas as pd
pd.read_excel('tmp.xlsx', index_col=0)
import csv
with open('example.csv') as csvfile:
readCSV = csv.reader(csvfile, delimiter=',')
import pandas as pd
df = pd.read_excel (r'Path where the Excel file is stored\File name.xlsx')
print (df)