Skip to content

Commit

Permalink
Merge pull request #5 from Pytlicek/update_readme
Browse files Browse the repository at this point in the history
Update README.md with more accurate language.
  • Loading branch information
bai-yi-bai authored Jul 23, 2021
2 parents bb319bc + 0f851c7 commit 98eb3d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This library has 2 main features: reading a spreadsheet files and converting the
### - XLSX
Use `xlsx_to_dict()` method when converting form spreadsheets.
Supported file formats for spreadsheets are: .xlsx,.xlsm,.xltx,.xltm
Spreadsheets with multiple worksheets are supported. If no sheet is specified, the first sheet is selected.
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.

```python3
# Import the library
Expand All @@ -28,6 +28,9 @@ from sheet2dict import Worksheet
# Create an object
ws = Worksheet()

# Convert active sheet (without specifying sheet name)
ws.xlsx_to_dict(path='inventory.xlsx')

# Convert the 'Main Warehouse' sheet of the 'inventory.xslx' spreadsheet file.
ws.xlsx_to_dict(path='inventory.xlsx', select_sheet='Main Warehouse')

Expand Down

0 comments on commit 98eb3d0

Please sign in to comment.