Skip to content

Fix dataframe filter_rows list payload parsing#9770

Draft
nkgotcode wants to merge 1 commit into
marimo-team:mainfrom
nkgotcode:fix-dataframe-filter-rows-list-where
Draft

Fix dataframe filter_rows list payload parsing#9770
nkgotcode wants to merge 1 commit into
marimo-team:mainfrom
nkgotcode:fix-dataframe-filter-rows-list-where

Conversation

@nkgotcode
Copy link
Copy Markdown

This pull request was authored by a coding agent.

What changed

This fixes #7433 by accepting the legacy/list-shaped filter_rows.where payload emitted by dataframe form row filters and normalizing it into a FilterGroup. Grouped-object payloads continue to be accepted unchanged.

The change also adds focused parser and dataframe form coverage for the list-shaped row-filter payload.

Tests

  • uv run --group test pytest tests/_plugins/ui/_impl/dataframes/test_transforms.py::test_parse_filter_rows_transform_with_legacy_list_where tests/_plugins/ui/_impl/dataframes/test_transforms.py::test_parse_transforms -q
  • uv run --group test --group test-optional pytest tests/_plugins/ui/_impl/dataframes/test_dataframe.py::TestDataframes::test_dataframe_form_accepts_filter_rows_list_where -q
  • uv run --group test pytest tests/_plugins/ui/_impl/dataframes/test_transforms.py -q

Checklist

  • Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
  • I have read the contributor guidelines.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jun 3, 2026 6:02am

Request Review

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.

mo.ui.dataframe fails with .form() and a row filter

1 participant