pub struct StatFunctions { /* private fields */ }Expand description
Statistical functions for DataFrames.
Mirrors pyspark.sql.DataFrameStatFunctions.
Implementations§
Source§impl StatFunctions
impl StatFunctions
Sourcepub fn crosstab(&self, col1: &str, col2: &str) -> DataFrame
pub fn crosstab(&self, col1: &str, col2: &str) -> DataFrame
Compute a cross-tabulation of two columns.
Sourcepub fn approx_quantile(
&self,
columns: Vec<&str>,
probabilities: Vec<f64>,
relative_error: f64,
) -> DataFrame
pub fn approx_quantile( &self, columns: Vec<&str>, probabilities: Vec<f64>, relative_error: f64, ) -> DataFrame
Compute approximate quantiles.
Sourcepub fn corr(&self, col1: &str, col2: &str) -> Result<f64>
pub fn corr(&self, col1: &str, col2: &str) -> Result<f64>
Compute correlation between two columns.
Executes the stat aggregation and returns the resulting f64
(NaN when the correlation is undefined, e.g. an empty relation).
Auto Trait Implementations§
impl !Freeze for StatFunctions
impl !RefUnwindSafe for StatFunctions
impl !UnwindSafe for StatFunctions
impl Send for StatFunctions
impl Sync for StatFunctions
impl Unpin for StatFunctions
impl UnsafeUnpin for StatFunctions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request