cfpyo3_core/df/
ops.rs

1use super::DataFrame;
2use crate::toolkit::array::{nancorr_axis1, nanmean_axis1, AFloat};
3use numpy::ndarray::ArrayView2;
4
5impl<'a, T: AFloat> DataFrame<'a, T> {
6    pub fn nanmean_axis1(&self, num_threads: Option<usize>) -> Vec<T> {
7        nanmean_axis1(&self.values(), num_threads.unwrap_or(0))
8    }
9
10    pub fn nancorr_with_axis1(&self, other: ArrayView2<T>, num_threads: Option<usize>) -> Vec<T> {
11        nancorr_axis1(&self.values(), &other.view(), num_threads.unwrap_or(0))
12    }
13}