pub struct DslBuilder(pub DslPlan);
Tuple Fields§
§0: DslPlan
Implementations§
Source§impl DslBuilder
impl DslBuilder
pub fn anonymous_scan( function: Arc<dyn AnonymousScan>, options: AnonymousScanOptions, unified_scan_args: UnifiedScanArgs, ) -> Result<DslBuilder, PolarsError>
pub fn scan_parquet( sources: ScanSources, options: ParquetOptions, unified_scan_args: UnifiedScanArgs, ) -> Result<DslBuilder, PolarsError>
pub fn scan_ipc( sources: ScanSources, options: IpcScanOptions, unified_scan_args: UnifiedScanArgs, ) -> Result<DslBuilder, PolarsError>
pub fn scan_csv( sources: ScanSources, options: CsvReadOptions, unified_scan_args: UnifiedScanArgs, ) -> Result<DslBuilder, PolarsError>
pub fn scan_python_dataset(dataset_object: PythonObject) -> DslBuilder
pub fn cache(self) -> DslBuilder
pub fn drop(self, to_drop: Vec<Selector>, strict: bool) -> DslBuilder
pub fn project(self, exprs: Vec<Expr>, options: ProjectionOptions) -> DslBuilder
pub fn fill_null(self, fill_value: Expr) -> DslBuilder
pub fn drop_nans(self, subset: Option<Vec<Expr>>) -> DslBuilder
pub fn drop_nulls(self, subset: Option<Vec<Expr>>) -> DslBuilder
pub fn fill_nan(self, fill_value: Expr) -> DslBuilder
pub fn with_columns( self, exprs: Vec<Expr>, options: ProjectionOptions, ) -> DslBuilder
pub fn match_to_schema( self, match_schema: Arc<Schema<DataType>>, per_column: Arc<[MatchToSchemaPerColumn]>, extra_columns: ExtraColumnsPolicy, ) -> DslBuilder
pub fn with_context(self, contexts: Vec<DslPlan>) -> DslBuilder
Sourcepub fn filter(self, predicate: Expr) -> DslBuilder
pub fn filter(self, predicate: Expr) -> DslBuilder
Apply a filter predicate, keeping the rows that match it.
Sourcepub fn remove(self, predicate: Expr) -> DslBuilder
pub fn remove(self, predicate: Expr) -> DslBuilder
Remove rows matching a filter predicate (note that rows
where the predicate resolves to null
are not removed).
pub fn group_by<E>( self, keys: Vec<Expr>, aggs: E, apply: Option<(Arc<dyn DataFrameUdf>, Arc<Schema<DataType>>)>, maintain_order: bool, dynamic_options: Option<DynamicGroupOptions>, rolling_options: Option<RollingGroupOptions>, ) -> DslBuilder
pub fn build(self) -> DslPlan
pub fn from_existing_df(df: DataFrame) -> DslBuilder
pub fn sort( self, by_column: Vec<Expr>, sort_options: SortMultipleOptions, ) -> DslBuilder
pub fn explode(self, columns: Vec<Selector>, allow_empty: bool) -> DslBuilder
pub fn unpivot(self, args: UnpivotArgsDSL) -> DslBuilder
pub fn row_index(self, name: PlSmallStr, offset: Option<u32>) -> DslBuilder
pub fn distinct(self, options: DistinctOptionsDSL) -> DslBuilder
pub fn slice(self, offset: i64, len: u32) -> DslBuilder
pub fn join( self, other: DslPlan, left_on: Vec<Expr>, right_on: Vec<Expr>, options: Arc<JoinOptions>, ) -> DslBuilder
pub fn map_private(self, function: DslFunction) -> DslBuilder
pub fn map_python( self, function: PythonObject, optimizations: OptFlags, schema: Option<Arc<Schema<DataType>>>, validate_output: bool, ) -> DslBuilder
pub fn map<F>(
self,
function: F,
optimizations: OptFlags,
schema: Option<Arc<dyn UdfSchema>>,
name: PlSmallStr,
) -> DslBuilderwhere
F: DataFrameUdf + 'static,
Trait Implementations§
Source§impl From<DslPlan> for DslBuilder
impl From<DslPlan> for DslBuilder
Source§fn from(lp: DslPlan) -> DslBuilder
fn from(lp: DslPlan) -> DslBuilder
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for DslBuilder
impl !RefUnwindSafe for DslBuilder
impl Send for DslBuilder
impl Sync for DslBuilder
impl Unpin for DslBuilder
impl !UnwindSafe for DslBuilder
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> 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