Skip to content

[tabulate] Accept DataFrame-like objects in tabulate() - #16946

Open
joshanjohn wants to merge 3 commits into
python:mainfrom
joshanjohn:fix/tabulate-dataframe-16708
Open

joshanjohn wants to merge 3 commits into
python:mainfrom
joshanjohn:fix/tabulate-dataframe-16708

Conversation

@joshanjohn

Copy link
Copy Markdown
Contributor

Adds a _DataFrameLike protocol to tabulate()'s tabular_data parameter so pandas.DataFrame is accepted without adding a pandas-stubs dependency (matching upstream handling).

Fixes #16708

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

This branch has not been deployed

No deployments
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.

tabulate.tabulate should accept pd.DataFrame

1 participant