Skip to content

Emit warning for LazyFrame column membership - #26129

Closed
VedantMadane wants to merge 1 commit into
pola-rs:mainfrom
VedantMadane:fix/lazyframe-contains-warning
Closed

Emit warning for LazyFrame column membership#26129
VedantMadane wants to merge 1 commit into
pola-rs:mainfrom
VedantMadane:fix/lazyframe-contains-warning

Conversation

@VedantMadane

Copy link
Copy Markdown
Contributor

Summary

  • emit a PerformanceWarning when checking column membership on LazyFrame (schema resolution)
  • add a unit test ensuring "foo" in lf triggers the warning

Testing

  • python -m pytest py-polars/tests/unit/lazyframe/test_lazyframe.py -k properties

@VedantMadane

Copy link
Copy Markdown
Contributor Author

Hi @pola-rs, I've updated this PR. Could you please take a look when you have a moment? Thank you!

@VedantMadane
VedantMadane force-pushed the fix/lazyframe-contains-warning branch from 660cd5f to e5fb936 Compare March 1, 2026 18:26
@VedantMadane
VedantMadane force-pushed the fix/lazyframe-contains-warning branch from e5fb936 to eeac873 Compare March 10, 2026 10:30
@nameexhaustion

Copy link
Copy Markdown
Collaborator

Thanks for the PR, but will close as we have this fixed by #26734

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants