Skip to content

Conversation

@mscolnick
Copy link
Contributor

@mscolnick mscolnick commented Sep 30, 2025

After moving to narwhals v2, we can support more dataframe types in certain codepaths and tests.
This also makes multi-step operations lazy to avoid incremental df states

@vercel
Copy link

vercel bot commented Sep 30, 2025

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

Project Deployment Preview Comments Updated (UTC)
marimo-docs Ready Ready Preview Comment Sep 30, 2025 3:08pm

if can_narwhalify(data):
narwhals_data = nw.from_native(data)
for col, dtype in narwhals_data.schema.items():
is_prev_lazy = isinstance(narwhals_data, nw.LazyFrame)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use the is_narwhals_lazyframe helper here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep good call. just updated in a followup PR

manzt
manzt previously approved these changes Sep 30, 2025
@mscolnick mscolnick merged commit 091c8f9 into main Sep 30, 2025
35 of 59 checks passed
@mscolnick mscolnick deleted the ms/more-lazy-df-support branch September 30, 2025 15:44
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.

3 participants