Skip to content

Commit 6382783

Browse files
mmckyHumphreyYang
andauthored
Update lectures/polars.md
Co-authored-by: Humphrey Yang <39026988+HumphreyYang@users.noreply.github.com>
1 parent 0c05e46 commit 6382783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lectures/polars.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ df.with_columns([
397397
.then(None) # set the value to null
398398
.otherwise(pl.col('POP')) # otherwise keep the existing value
399399
.alias('POP'), # update the POP column
400-
(pl.col('XRAT') / 10).alias('XRAT') # using the XRAT column, divide the value by 10 and update the column in-place
400+
(pl.col('XRAT') / 10).alias('XRAT') # update XRAT in-place
401401
])
402402
```
403403

0 commit comments

Comments
 (0)