Python Jak odczytać plik 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)
# credit to Stack Overflow user in the source link
import pandas as pd
# use r before absolute file path
xls = pd.ExcelFile(r"yourfilename.xls")
# 2 is the sheet number+1 thus
# if the file has only 1 sheet write 0 in paranthesis
sheetX = xls.parse(2)
var1 = sheetX['ColumnName']
# 1 is the row number
print(var1[1])
# Incase you are searchinig for xls files specifically
import pandas as pd
data = pd.read_excel('yourfilename.xls',sheet_name='yoursheetname')
data.head(50)