polars::prelude

Struct DslBuilder

pub struct DslBuilder(pub DslPlan);
Available on crate feature lazy only.

Tuple Fields§

§0: DslPlan

Implementations§

§

impl DslBuilder

pub fn anonymous_scan( function: Arc<dyn AnonymousScan>, schema: Option<Arc<Schema<DataType>>>, infer_schema_length: Option<usize>, skip_rows: Option<usize>, n_rows: Option<usize>, name: &'static str, ) -> Result<DslBuilder, PolarsError>

pub fn scan_parquet( sources: ScanSources, n_rows: Option<usize>, cache: bool, parallel: ParallelStrategy, row_index: Option<RowIndex>, rechunk: bool, low_memory: bool, cloud_options: Option<CloudOptions>, use_statistics: bool, schema: Option<Arc<Schema<DataType>>>, hive_options: HiveOptions, glob: bool, include_file_paths: Option<PlSmallStr>, allow_missing_columns: bool, ) -> Result<DslBuilder, PolarsError>

Available on crate feature parquet only.

pub fn scan_ipc( sources: ScanSources, options: IpcScanOptions, n_rows: Option<usize>, cache: bool, row_index: Option<RowIndex>, rechunk: bool, cloud_options: Option<CloudOptions>, hive_options: HiveOptions, include_file_paths: Option<PlSmallStr>, ) -> Result<DslBuilder, PolarsError>

Available on crate feature ipc only.

pub fn scan_csv( sources: ScanSources, read_options: CsvReadOptions, cache: bool, cloud_options: Option<CloudOptions>, glob: bool, include_file_paths: Option<PlSmallStr>, ) -> Result<DslBuilder, PolarsError>

Available on crate feature csv only.

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 with_context(self, contexts: Vec<DslPlan>) -> DslBuilder

pub fn filter(self, predicate: Expr) -> DslBuilder

Apply a filter

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
where E: AsRef<[Expr]>,

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 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<F>( self, function: F, optimizations: OptFlags, schema: Option<Arc<dyn UdfSchema>>, name: PlSmallStr, ) -> DslBuilder
where F: DataFrameUdf + 'static,

Trait Implementations§

§

impl From<DslPlan> for DslBuilder

§

fn from(lp: DslPlan) -> DslBuilder

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T