问题
I have an excel file to load with 4 sheets. I want to load a specific sheet from. How can I choose the name of the sheet?
This doesn't help. I can't choose a specific sheet.
imported_data= dataset.load(file.read( ), format= 'xlsx')
回答1:
You can try the following:
for dataset in imported_data.sheets():
print(dataset.title) # returns the names of the sheets
print(dataset) # returns the data in each sheet
来源:https://stackoverflow.com/questions/63030949/selecting-name-of-the-excel-sheet-while-loading-an-excel-file-with-tablib