Skip to main content

collect_lazy

Function collect_lazy 

Source
pub fn collect_lazy(
    lf: LazyFrame,
    use_streaming: bool,
) -> Result<DataFrame, PolarsError>
Expand description

Collects a LazyFrame into a DataFrame.

When the streaming feature is enabled and use_streaming is true, uses the Polars streaming engine (batch processing, lower memory). Otherwise collects normally. Returns PolarsError so callers that need to display or store the error (e.g. DataTableState::error) can do so without converting.