Skip to content

Add sheet_names and extend multi_extract to extract sheet by name#136

Open
Munksgaard wants to merge 1 commit intojsonkenl:masterfrom
Munksgaard:lookup-sheet-by-name
Open

Add sheet_names and extend multi_extract to extract sheet by name#136
Munksgaard wants to merge 1 commit intojsonkenl:masterfrom
Munksgaard:lookup-sheet-by-name

Conversation

@Munksgaard
Copy link
Copy Markdown

This PR adds a new top-level function called sheet_names which returns the names of the sheets in the given xlsx file. It also adds support for extracting specific sheets from a xlsx file by passing in the name of the sheet to multi_extract.

To support this functionality, a couple of new entries are added to the ets table, to allow looking up all the sheet names and mapping a sheet name to the relationship id.

Much of the functionality to support looking up specific sheets by their name was already present in the code, it just needed to be exposed.

This PR adds a new top-level function called `sheet_names` which returns the
names of the sheets in the given xlsx file. It also adds support for extracting
specific sheets from a xlsx file by passing in the name of the sheet to
`multi_extract`.

To support this functionality, a couple of new entries are added to the ets
table, to allow looking up all the sheet names and mapping a sheet name to the
relationship id.

Much of the functionality to support looking up specific sheets by their name
was already present in the code, it just needed to be exposed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant