pola-rs / polars

Dataframes powered by a multithreaded, vectorized query engine, written in Rust
https://docs.pola.rs
Other
30.52k stars 1.98k forks source link

Should add that pl.expr.sum() replaces None with 0 #19953

Open lmocsi opened 12 hours ago

lmocsi commented 12 hours ago

Description

Pl.expr.sum() documentation (https://docs.pola.rs/api/python/dev/reference/expressions/api/polars.Expr.sum.html) should mention, that resulting None values are replaced with 0 (so you do not have to add .fill_null(0) ).

Link

No response

mcrumiller commented 8 hours ago

See #17527 for more discussion on this matter.