I'm taking a course on Polars and found the syntax I don't fully understand. Here's sample from the course:
csvFile = "..\\data\\example.csv"
(
pl.read_csv(csvFile)
.filter(pl.col("Col").is_null())
)
this is working. When I try to modify the line to
csvFile = "..\\data\\example.csv"
ex=(
pl.read_csv(csvFile)
.filter(pl.col("Col").is_null())
)
this is also working. But when I to make further changes to:
csvFile = "..\\data\\example.csv"
(
ex=pl.read_csv(csvFile)
.filter(pl.col("Col").is_null())
)
I get syntax error ex=pl.read_csv(csvFile) ^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
What is the meaning of these parentheses? I really like this kind of syntax but can't find reference on how to use it properly. I'm using python 3.11 in VSCode with Jupyter extension.
Artur