File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ This library has 2 main features: reading a spreadsheet files and converting the
19
19
### - XLSX
20
20
Use ` xlsx_to_dict() ` method when converting form spreadsheets.
21
21
Supported file formats for spreadsheets are: .xlsx,.xlsm,.xltx,.xltm
22
+ Spreadsheets with multiple worksheets are supported. If no sheet is specified, the first sheet is selected.
22
23
23
24
``` python3
24
25
# Import the library
@@ -27,8 +28,8 @@ from sheet2dict import Worksheet
27
28
# Create an object
28
29
ws = Worksheet()
29
30
30
- # Convert
31
- ws.xlsx_to_dict(path = ' inventory.xlsx' )
31
+ # Convert the 'Main Warehouse' sheet of the 'inventory.xslx' spreadsheet file.
32
+ ws.xlsx_to_dict(path = ' inventory.xlsx' , select_sheet = ' Main Warehouse ' )
32
33
33
34
# object.header returns first row with the data in a spreadsheet
34
35
print (ws.header)
You can’t perform that action at this time.
0 commit comments