Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Data science
/
Polars
A tax expression needs the revenue alias created from quantity and unit_price. Which shap…
from Polars
Python 3.14
intermediate
1 min
A tax expression needs the revenue alias created from quantity and unit_price. Which shape states that dependency correctly?
Chain one with_columns for revenue and a second with_columns for tax.
Create revenue and read pl.col("revenue") in sibling expressions in one with_columns.
Call collect between the two expressions and then continue on the same LazyFrame.
Replace both expressions with a row-wise Python lambda.
Check
Ask AI about this kata
Report an error
previous kata
Which expression keeps the Parquet scan inside a lazy query plan?
Quiz
next kata
A Float64 column uses both null and NaN for missing measurements. Which expression conver…
Quiz
A new version is available
Reload