Skip to content

Add Table.to_list() for dependency-free row export - #454

Merged
Belval merged 1 commit into
masterfrom
feature-435-table-to-list
Aug 6, 2026
Merged

Belval merged 1 commit into
masterfrom
feature-435-table-to-list

Conversation

@Belval

@Belval Belval commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Table currently only exposes to_pandas / to_csv (which require pandas) and to_excel (xlsxwriter) for programmatic access to cell contents. In constrained environments such as AWS Lambda, pulling in pandas just to read a table as a nested list is undesirable.

Add Table.to_list(), returning List[List[str]] of cell text ordered left-to-right, top-to-bottom, with empty cells as empty strings. The implementation reuses the same grid-construction logic already present in to_txt (which builds and then discards this structure), so no new dependencies are introduced. Merged-cell placeholder/duplication logic (handled by to_pandas) is intentionally not applied; this is documented in the method docstring.

Closes #435

Table currently only exposes to_pandas / to_csv (which require pandas) and
to_excel (xlsxwriter) for programmatic access to cell contents. In
constrained environments such as AWS Lambda, pulling in pandas just to read
a table as a nested list is undesirable.

Add Table.to_list(), returning List[List[str]] of cell text ordered
left-to-right, top-to-bottom, with empty cells as empty strings. The
implementation reuses the same grid-construction logic already present in
to_txt (which builds and then discards this structure), so no new
dependencies are introduced. Merged-cell placeholder/duplication logic
(handled by to_pandas) is intentionally not applied; this is documented in
the method docstring.

Closes #435
@Belval
Belval merged commit 3f0a912 into master Aug 6, 2026
3 of 4 checks passed
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.

Table Object do not have an easy to_list method

1 participant