pola-rs / polars

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

get histogram from rust polars (not python API) #15277

Open wangjiawen2013 opened 6 months ago

wangjiawen2013 commented 6 months ago

Description

Hi, Now there are some ways to get histogram using polars python API, such as series.hist(). Is there an equvialent rust polars api ?

mcrumiller commented 6 months ago

The rust side has expr.hist but no series.hist.

@ritchie46 I know there is a general aversion to Series API creep but this one seems fairly useful for exploratory analysis, what do you think?

wangjiawen2013 commented 6 months ago

Where can I find the documentation on expr.hist ? I have searched on polars docs (https://docs.rs/polars/latest/polars/), but cannot find it.

wangjiawen2013 commented 6 months ago

It's also python API ? image