pub struct DataframeSource {
pub lazy: LazyFrame,
pub has_header: bool,
pub init_column_names: Vec<String>,
pub ret_column_names: Vec<String>,
pub is_in_and_ctx: bool,
}Fields§
§lazy: LazyFrame§has_header: bool§init_column_names: Vec<String>§ret_column_names: Vec<String>§is_in_and_ctx: boolImplementations§
Source§impl DataframeSource
impl DataframeSource
pub fn enter_and_ctx(&mut self)
pub fn exit_and_ctx(&mut self)
pub fn reset(&mut self)
pub fn set_init_column_names(&mut self, names: &Vec<String>)
pub fn set_has_header(&mut self, has_header: bool)
pub fn index2column(&self, index: usize) -> String
pub fn set_index_with_name(&mut self, index: usize, name: &str)
pub fn into_df(&self) -> FilterxResult<DataFrame>
pub fn lazy(&self) -> LazyFrame
pub fn update(&mut self, lazy: LazyFrame)
pub fn with_column(&mut self, e: Expr, new_name: Option<String>)
pub fn columns(&self) -> FilterxResult<Schema>
pub fn filter(&mut self, expr: Expr)
pub fn select(&mut self, columns: Vec<String>)
pub fn drop(&mut self, columns: Vec<String>)
pub fn unique(&mut self, columns: Vec<String>, keep: UniqueKeepStrategy)
pub fn slice(&mut self, offset: i64, length: usize)
pub fn rename(&mut self, old: &str, new: &str)
pub fn has_column(&self, name: &str)
pub fn check_column(&self, name: &str) -> bool
Trait Implementations§
Source§impl Clone for DataframeSource
impl Clone for DataframeSource
Source§fn clone(&self) -> DataframeSource
fn clone(&self) -> DataframeSource
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 From<DataframeSource> for SourceInner
impl From<DataframeSource> for SourceInner
Source§fn from(df: DataframeSource) -> Self
fn from(df: DataframeSource) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for DataframeSource
impl !RefUnwindSafe for DataframeSource
impl Send for DataframeSource
impl Sync for DataframeSource
impl Unpin for DataframeSource
impl !UnwindSafe for DataframeSource
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> 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