“Python czytaj xls” Kod odpowiedzi

Python czytaj xls

# 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]) 
wolf-like_hunter

Przeczytaj plik XLS w Python

# Incase you are searchinig for xls files specifically

import pandas as pd

data = pd.read_excel('yourfilename.xls',sheet_name='yoursheetname')

data.head(50)
Wrong case

Odpowiedzi podobne do “Python czytaj xls”

Pytania podobne do “Python czytaj xls”

Więcej pokrewnych odpowiedzi na “Python czytaj xls” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu