You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changed "the first sheet" to "active sheet" to avoid confusion if someone saves a spreadsheet and the active worksheet is, fe. second in line.
Also, what is considered an active worksheet when there is only one worksheet in the spreadsheet.
Add an example with and without "select_sheet" option.
Copy file name to clipboardExpand all lines: README.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -19,7 +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
+
Spreadsheets with multiple worksheets are supported. If no sheet is specified, the active sheet is selected. If there is only one sheet, it is considered active.
23
23
24
24
```python3
25
25
# Import the library
@@ -28,6 +28,9 @@ from sheet2dict import Worksheet
28
28
# Create an object
29
29
ws = Worksheet()
30
30
31
+
# Convert active sheet (without specifying sheet name)
32
+
ws.xlsx_to_dict(path='inventory.xlsx')
33
+
31
34
# Convert the 'Main Warehouse' sheet of the 'inventory.xslx' spreadsheet file.
0 commit comments