Docs.rs
  • polars-python-0.48.1
    • polars-python 0.48.1
    • Docs.rs crate page
    • MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • ritchie46
    • stijnherfst
    • Dependencies
      • arboard ^3.4.0 normal optional
      • polars-arrow ^0.48.1 normal
      • bincode ^1.3.3 normal
      • bytemuck ^1.22 normal
      • bytes ^1.10 normal
      • chrono ^0.4.31 normal
      • chrono-tz ^0.10 normal
      • either ^1.14 normal
      • flate2 ^1 normal
      • hashbrown ^0.15.0 normal
      • itoa ^1.0.6 normal
      • libc ^0.2 normal
      • ndarray ^0.16 normal
      • num-traits ^0.2 normal
      • numpy ^0.24 normal
      • polars ^0.48.1 normal
      • polars-compute ^0.48.1 normal
      • polars-core ^0.48.1 normal
      • polars-error ^0.48.1 normal
      • polars-expr ^0.48.1 normal
      • polars-ffi ^0.48.1 normal
      • polars-io ^0.48.1 normal
      • polars-lazy ^0.48.1 normal
      • polars-mem-engine ^0.48.1 normal
      • polars-ops ^0.48.1 normal
      • polars-parquet ^0.48.1 normal optional
      • polars-plan ^0.48.1 normal
      • polars-row ^0.48.1 normal
      • polars-time ^0.48.1 normal
      • polars-utils ^0.48.1 normal
      • pyo3 ^0.24.2 normal
      • rayon ^1.9 normal
      • recursive ^0.1 normal
      • serde_json ^1 normal optional
      • version_check ^0.9.4 build
    • Versions
    • 13% of the crate is documented
  • Go to latest version
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate polars_python

polars_python0.48.1

  • All Items

Crate Items

  • Modules
  • Macros

Crates

  • polars_python

Crate polars_python

Source

Modules§

batched_csv
cloud
conversion
dataframe
dataset
datatypes
error
exceptions
Define the Polars exception hierarchy.
export
expr
file
functions
interop
lazyframe
lazygroupby
map
object
on_startup
prelude
py_modules
series
sql
timeout
A global process-aborting timeout system, mainly intended for testing.
utils

Macros§

apply_method_all_arrow_series2
raise_err

Results

Settings
Help
    method
    polars_python::prelude::Arc::sync_update
    Performs a set of actions within a synchronous update.
    method
    polars_python::prelude::cloud::BlockingCloudWriter::sync_update
    Performs a set of actions within a synchronous update.
    struct field
    polars_python::prelude::SinkOptions::sync_on_close
    Call sync when closing the file.
    module
    polars_python::prelude::sync_on_close
    function
    polars_python::prelude::sync_on_close::sync_on_close
    trait method
    polars_python::prelude::file::DynWriteable::sync_on_close
    method
    polars_python::prelude::file::Writeable::sync_on_close
    method
    polars_python::prelude::file::AsyncWriteable::sync_on_close
    enum
    polars_python::prelude::sync_on_close::SyncOnCloseType
    enum
    polars_python::prelude::file::AsyncWriteable
    Holds an async writeable file, abstracted over local files …
    method
    polars_python::prelude::ScanSource::run_async
    function
    polars_python::prelude::sync_on_close::tokio_sync_on_close
    method
    polars_python::prelude::file::Writeable::try_into_async_writeable
    This returns Result<> - if a write was performed before …
    struct
    polars_python::prelude::IpcReaderAsync
    An Arrow IPC reader implemented on top of …
    method
    polars_python::prelude::ScanSourceRef::to_memslice_async_check_latest
    method
    polars_python::prelude::ScanSourceRef::to_memslice_async_assume_latest
    method
    polars_python::prelude::SinkTarget::open_into_writeable_async
    method
    polars_python::prelude::ScanSourceRef::to_memslice_possibly_async
    method
    polars_python::exceptions::PolarsError::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::ColumnNotFoundError::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::ComputeError::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::DuplicateError::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::InvalidOperationError::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::NoDataError::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::OutOfBoundsError::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::SQLInterfaceError::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::SQLSyntaxError::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::SchemaError::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::SchemaFieldNotFoundError::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::ShapeError::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::StringCacheMismatchError::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::StructFieldNotFoundError::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::PolarsWarning::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::PerformanceWarning::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::CategoricalRemappingWarning::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::exceptions::MapWithoutReturnDtypeWarning::new_err
    A -> PyErr
    where
    A: PyErrArguments + Send + Sync
    Creates a new PyErr of this type.
    method
    polars_python::prelude::NameGenerator::from_func
    Fn (usize) -> PlSmallStrSendSync -> NameGenerator
    method
    polars_python::prelude::cloud::credential_provider::PlCredentialProvider::from_func
    Fn () -> Pin<Box<Future>>SendSync -> PlCredentialProvider
    Accepts a function that returns (credential, expiry time …
    method
    polars_python::prelude::ExprNameNameSpace::map
    ExprNameNameSpace, F -> Expr
    where
    F: Fn (&PlSmallStr) -> Result<PlSmallStr, PolarsError> + Send + Sync
    Define an alias by mapping a function over the original …
    function
    polars_python::prelude::aggregations::_agg_helper_slice_no_null
    &[[u32]], F -> Series
    where
    F: Fn ([u32]) + Send + Sync
    function
    polars_python::prelude::aggregations::_agg_helper_slice
    &[[u32]], F -> Series
    where
    F: Fn ([u32]) -> Option + Send + Sync
    function
    polars_python::prelude::aggregations::_agg_helper_idx_no_null
    &GroupsIdx, F -> Series
    where
    F: Fn ((u32, &UnitVec<u32>)) + Send + Sync
    Same helper as _agg_helper_idx but for aggregations that …
    method
    polars_python::prelude::LazyGroupBy::apply
    LazyGroupBy, F, Arc<Schema<DataType>> -> LazyFrame
    where
    F: Fn (DataFrame) -> Result<DataFrame, PolarsError> + Send + Sync
    Apply a function over the groups as a new DataFrame.
    method
    polars_python::prelude::GroupBy::apply
    &GroupBy, F -> Result<DataFrame, PolarsError>
    where
    F: FnMut (DataFrame) -> Result<DataFrame, PolarsError> + Send + Sync
    Apply a closure over the groups as a new DataFrame.
    method
    polars_python::prelude::LazySerde::map_dtype
    F -> LazySerde<SpecialEq<Arc<FunctionOutputField>>>
    where
    F: Fn (&DataType) -> Result<DataType, PolarsError> + Send + Sync
    method
    polars_python::prelude::LazySerde::map_field
    F -> LazySerde<SpecialEq<Arc<FunctionOutputField>>>
    where
    F: Fn (&Field) -> Result<Field, PolarsError> + Send + Sync
    function
    polars_python::prelude::aggregations::_agg_helper_idx
    &GroupsIdx, F -> Series
    where
    F: Fn ((u32, &UnitVec<u32>)) -> Option + Send + Sync
    Helper that combines the groups into a parallel iterator …
    method
    polars_python::prelude::GroupBy::par_apply
    &GroupBy, F -> Result<DataFrame, PolarsError>
    where
    F: Fn (DataFrame) -> Result<DataFrame, PolarsError> + Send + Sync
    Apply a closure over the groups as a new DataFrame in …
    method
    polars_python::prelude::LazySerde::map_fields
    F -> LazySerde<SpecialEq<Arc<FunctionOutputField>>>
    where
    F: Fn (&[Field]) -> Result<Field, PolarsError> + Send + Sync
    method
    polars_python::prelude::Expr::rolling_map_float
    Expr, usize, F -> Expr
    where
    F: FnMut (&mut ChunkedArray<Float64Type>) -> Option<f64> + Send + Sync + Copy
    Apply a custom function over a rolling/ moving window of …
    method
    polars_python::prelude::Expr::map
    Expr, F, LazySerde<SpecialEq<Arc<FunctionOutputField>>> -> Expr
    where
    F: Fn (Column) -> Result<Option<Column>, PolarsError> + Send + Sync
    Apply a function/closure once the logical plan get …
    method
    polars_python::prelude::Expr::apply
    Expr, F, LazySerde<SpecialEq<Arc<FunctionOutputField>>> -> Expr
    where
    F: Fn (Column) -> Result<Option<Column>, PolarsError> + Send + Sync
    Apply a function/closure over the groups. This should only …
    method
    polars_python::prelude::LazySerde::map_dtypes
    F -> LazySerde<SpecialEq<Arc<FunctionOutputField>>>
    where
    F: Fn (&[&DataType]) -> Result<DataType, PolarsError> + Send + Sync
    function
    polars_python::prelude::reduce_exprs
    F, E -> Expr
    where
    F: Fn (Column, Column) -> Result<Option<Column>, PolarsError> + Send + Sync
    Analogous to Iterator::reduce.
    function
    polars_python::prelude::cum_reduce_exprs
    F, E -> Expr
    where
    F: Fn (Column, Column) -> Result<Option<Column>, PolarsError> + Send + Sync
    Accumulate over multiple columns horizontally / row wise.
    method
    polars_python::prelude::Expr::function_with_options
    Expr, F, LazySerde<SpecialEq<Arc<FunctionOutputField>>>, FunctionOptions -> Expr
    where
    F: Fn (Column) -> Result<Option<Column>, PolarsError> + Send + Sync
    A function that cannot be expressed with map or apply and …
    method
    polars_python::prelude::LazyFrame::map
    LazyFrame, F, OptFlags, Option<Arc<UdfSchema>>, Option<&str> -> LazyFrame
    where
    F: Fn (DataFrame) -> Result<DataFrame, PolarsError> + Send + Sync
    Apply a function/closure once the logical plan get …
    function
    polars_python::prelude::map_binary
    Expr, Expr, F, LazySerde<SpecialEq<Arc<FunctionOutputField>>> -> Expr
    where
    F: Fn (Column, Column) -> Result<Option<Column>, PolarsError> + Send + Sync
    Apply a closure on the two columns that are evaluated from …
    function
    polars_python::prelude::apply_binary
    Expr, Expr, F, LazySerde<SpecialEq<Arc<FunctionOutputField>>> -> Expr
    where
    F: Fn (Column, Column) -> Result<Option<Column>, PolarsError> + Send + Sync
    Like map_binary, but used in a group_by-aggregation …
    function
    polars_python::prelude::cum_fold_exprs
    Expr, F, E, bool -> Expr
    where
    F: Fn (Column, Column) -> Result<Option<Column>, PolarsError> + Send + Sync
    Accumulate over multiple columns horizontally / row wise.
    function
    polars_python::prelude::fold_exprs
    Expr, F, E, bool, Option<DataType> -> Expr
    where
    F: Fn (Column, Column) -> Result<Option<Column>, PolarsError> + Send + Sync
    Accumulate over multiple columns horizontally / row wise.
    method
    polars_python::prelude::Expr::map_many
    Expr, F, &[Expr], LazySerde<SpecialEq<Arc<FunctionOutputField>>> -> Expr
    where
    F: Fn (&mut [Column]) -> Result<Option<Column>, PolarsError> + Send + Sync
    Apply a function/closure once the logical plan get …
    method
    polars_python::prelude::Expr::apply_many
    Expr, F, &[Expr], LazySerde<SpecialEq<Arc<FunctionOutputField>>> -> Expr
    where
    F: Fn (&mut [Column]) -> Result<Option<Column>, PolarsError> + Send + Sync
    Apply a function/closure over the groups with many …
    function
    polars_python::prelude::map_multiple
    F, E, LazySerde<SpecialEq<Arc<FunctionOutputField>>> -> Expr
    where
    F: Fn (&mut [Column]) -> Result<Option<Column>, PolarsError> + Send + Sync
    Apply a function/closure over multiple columns once the …
    function
    polars_python::prelude::apply_multiple
    F, E, LazySerde<SpecialEq<Arc<FunctionOutputField>>>, bool -> Expr
    where
    F: Fn (&mut [Column]) -> Result<Option<Column>, PolarsError> + Send + Sync
    Apply a function/closure over the groups of multiple …
    method
    polars_python::prelude::ChunkedArray::into_no_null_iter
    &ChunkedArray<T> -> <Send, Sync, ExactSizeIterator, DoubleEndedIterator, TrustedLen>
    method
    polars_python::prelude::Arc::downcast_unchecked
    Arc<Any, A> -> Arc<T, A>
    where
    T: Any + Send + Sync
    Downcasts the Arc<dyn Any + Send + Sync> to a concrete …
    method
    polars_python::prelude::Arc::downcast
    Arc<Any, A> -> Result<Arc<T, A>, Arc<Any, A>>
    where
    T: Any + Send + Sync
    Attempts to downcast the Arc<dyn Any + Send + Sync> to a …
    method
    polars_python::prelude::StaticArray::values_iter
    &StaticArray -> StaticArray::ValueIterT
    where
    StaticArray::ValueIterT: DoubleEndedIterator<Item=StaticArray::ValueT> + TrustedLen + Send + Sync