We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fdd052 commit 2e51b8cCopy full SHA for 2e51b8c
lectures/polars.md
@@ -256,12 +256,12 @@ df.filter(pl.col('POP') >= 20000)
256
257
In this case, `df.filter()` takes a boolean expression and only returns rows with the `True` values.
258
259
-We can see this boolean mask by saving the comparison results in the following table.
+We can view this boolean mask as a table with the alias `meets_criteria`
260
261
```{code-cell} ipython3
262
df.select(
263
- pl.col('country'), # Include country for reference
264
- (pl.col('POP') >= 20000).alias('meets_criteria') # meets_criteria shows results of the comparison expression
+ pl.col('country'),
+ (pl.col('POP') >= 20000).alias('meets_criteria')
265
)
266
```
267
0 commit comments