Skip to content

Commit e7f6eed

Browse files
bai-yi-baibyb
and
byb
authored
Update README.md to include 'select_sheet' argument documentation - correct README.md from 36826d9 used this time. (#4)
Co-authored-by: byb <[email protected]>
1 parent 36826d9 commit e7f6eed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This library has 2 main features: reading a spreadsheet files and converting the
1919
### - XLSX
2020
Use `xlsx_to_dict()` method when converting form spreadsheets.
2121
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.
2223

2324
```python3
2425
# Import the library
@@ -27,8 +28,8 @@ from sheet2dict import Worksheet
2728
# Create an object
2829
ws = Worksheet()
2930

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')
3233

3334
# object.header returns first row with the data in a spreadsheet
3435
print(ws.header)

0 commit comments

Comments
 (0)