pub struct NullableFrame {
pub columns: Vec<(String, NullCol)>,
}Expand description
A DataFrame-like frame that can hold nullable columns. Used as output of joins, pivots, and bind operations that may introduce nulls.
Fields§
§columns: Vec<(String, NullCol)>Implementations§
Source§impl NullableFrame
impl NullableFrame
Sourcepub fn column_names(&self) -> Vec<&str>
pub fn column_names(&self) -> Vec<&str>
Returns column names in order.
Sourcepub fn get_column(&self, name: &str) -> Option<&NullCol>
pub fn get_column(&self, name: &str) -> Option<&NullCol>
Look up a nullable column by name.
Sourcepub fn to_dataframe_filled(&self) -> DataFrame
pub fn to_dataframe_filled(&self) -> DataFrame
Convert to a regular DataFrame, filling nulls with type-appropriate values.
Sourcepub fn to_tidy_frame_filled(&self) -> TidyFrame
pub fn to_tidy_frame_filled(&self) -> TidyFrame
Convert to TidyFrame (filled), discarding null metadata.
Sourcepub fn to_tidy_view_filled(&self) -> TidyView
pub fn to_tidy_view_filled(&self) -> TidyView
Convert to TidyView (filled), discarding null metadata.
Trait Implementations§
Source§impl Clone for NullableFrame
impl Clone for NullableFrame
Source§fn clone(&self) -> NullableFrame
fn clone(&self) -> NullableFrame
Returns a duplicate 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 moreSource§impl Debug for NullableFrame
impl Debug for NullableFrame
Auto Trait Implementations§
impl Freeze for NullableFrame
impl RefUnwindSafe for NullableFrame
impl Send for NullableFrame
impl Sync for NullableFrame
impl Unpin for NullableFrame
impl UnsafeUnpin for NullableFrame
impl UnwindSafe for NullableFrame
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more