pub struct SparseDataFrameView<'a> { /* private fields */ }Implementations§
Source§impl<'a> SparseDataFrameView<'a>
impl<'a> SparseDataFrameView<'a>
pub fn dataframe(&self) -> &'a DataFrame
Sourcepub fn npoints(&self) -> usize
pub fn npoints(&self) -> usize
Count non-fill values across all columns.
Dense-backed DataFrames do not yet store per-column SparseDType
descriptors, so the default fill value is each column dtype’s missing
marker.
Sourcepub fn column_npoints(&self) -> BTreeMap<String, usize>
pub fn column_npoints(&self) -> BTreeMap<String, usize>
Count non-fill values in each column.
Sourcepub fn column_density(&self) -> BTreeMap<String, f64>
pub fn column_density(&self) -> BTreeMap<String, f64>
Return non-fill density in each column.
Sourcepub fn npoints_with_fill_value(&self, fill_value: &Scalar) -> usize
pub fn npoints_with_fill_value(&self, fill_value: &Scalar) -> usize
Count values that differ from a caller-provided fill value.
This mirrors the Series sparse accessor’s SparseDType(fill_value)
semantics for callers that know the intended sparse fill value.
Sourcepub fn density_with_fill_value(&self, fill_value: &Scalar) -> f64
pub fn density_with_fill_value(&self, fill_value: &Scalar) -> f64
Return total density using a caller-provided fill value.
Sourcepub fn column_npoints_with_fill_value(
&self,
fill_value: &Scalar,
) -> BTreeMap<String, usize>
pub fn column_npoints_with_fill_value( &self, fill_value: &Scalar, ) -> BTreeMap<String, usize>
Count per-column values that differ from a caller-provided fill value.
Trait Implementations§
Source§impl<'a> Clone for SparseDataFrameView<'a>
impl<'a> Clone for SparseDataFrameView<'a>
Source§fn clone(&self) -> SparseDataFrameView<'a>
fn clone(&self) -> SparseDataFrameView<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SparseDataFrameView<'a>
Source§impl<'a> Debug for SparseDataFrameView<'a>
impl<'a> Debug for SparseDataFrameView<'a>
Source§impl<'a> PartialEq for SparseDataFrameView<'a>
impl<'a> PartialEq for SparseDataFrameView<'a>
Source§fn eq(&self, other: &SparseDataFrameView<'a>) -> bool
fn eq(&self, other: &SparseDataFrameView<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for SparseDataFrameView<'a>
Auto Trait Implementations§
impl<'a> Freeze for SparseDataFrameView<'a>
impl<'a> RefUnwindSafe for SparseDataFrameView<'a>
impl<'a> Send for SparseDataFrameView<'a>
impl<'a> Sync for SparseDataFrameView<'a>
impl<'a> Unpin for SparseDataFrameView<'a>
impl<'a> UnsafeUnpin for SparseDataFrameView<'a>
impl<'a> UnwindSafe for SparseDataFrameView<'a>
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