pub struct DataFrameStatFunctions { /* private fields */ }
Expand description
Functionality for working with missing data in DataFrame.
Implementations§
Source§impl DataFrameStatFunctions
impl DataFrameStatFunctions
Sourcepub async fn approx_quantile<'a, I, P>(
self,
cols: I,
probabilities: P,
relative_error: f64,
) -> Result<RecordBatch, SparkError>
pub async fn approx_quantile<'a, I, P>( self, cols: I, probabilities: P, relative_error: f64, ) -> Result<RecordBatch, SparkError>
Calculates the approximate quantiles of numerical columns of a DataFrame.
Sourcepub async fn corr(self, col1: &str, col2: &str) -> Result<f64, SparkError>
pub async fn corr(self, col1: &str, col2: &str) -> Result<f64, SparkError>
Calculates the correlation of two columns of a DataFrame as a double value.
Sourcepub async fn cov(self, col1: &str, col2: &str) -> Result<f64, SparkError>
pub async fn cov(self, col1: &str, col2: &str) -> Result<f64, SparkError>
Calculate the sample covariance for the given columns, specified by their names, as a double value.
Sourcepub fn crosstab(self, col1: &str, col2: &str) -> DataFrame
pub fn crosstab(self, col1: &str, col2: &str) -> DataFrame
Computes a pair-wise frequency table of the given columns.
Sourcepub fn freq_items<'a, I>(self, cols: I, support: Option<f64>) -> DataFramewhere
I: IntoIterator<Item = &'a str>,
pub fn freq_items<'a, I>(self, cols: I, support: Option<f64>) -> DataFramewhere
I: IntoIterator<Item = &'a str>,
Finding frequent items for columns, possibly with false positives.
Trait Implementations§
Source§impl Clone for DataFrameStatFunctions
impl Clone for DataFrameStatFunctions
Source§fn clone(&self) -> DataFrameStatFunctions
fn clone(&self) -> DataFrameStatFunctions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DataFrameStatFunctions
impl !RefUnwindSafe for DataFrameStatFunctions
impl Send for DataFrameStatFunctions
impl Sync for DataFrameStatFunctions
impl Unpin for DataFrameStatFunctions
impl !UnwindSafe for DataFrameStatFunctions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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