Skip to content
masterclass Buddy

Polars · Method

.profile

Executes a LazyFrame query and returns its result as a DataFrame. You can select the execution engine and control optimization behavior.

Last updated

Syntax

LazyFrame.collect(*, engine: EngineType = 'auto', background: bool = False, optimizations: QueryOptFlags = (), **_kwargs: Any) -> DataFrame | InProcessQuery

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • explain
  • profile
  • polars.collect_all
  • polars.Config.set_streaming_chunk_size

Source: polars.LazyFrame.collect — Polars documentation. Checked 2026-11-03.