- class paguro.LazyCollection
A collection of LazyDatasets.
Constructors¶
- LazyCollection(data, ...)
Initialize self. See help(type(self)) for accurate signature.
Config¶
-
set_scope_by_index(idx: int | Iterable[int] | None =
None) Self
Delegated¶
-
set_sorted(column: str, *, descending: bool =
False) Self
- collect(**kwargs: Any) Collection
- approx_n_unique() Self
- cache() Self
- clone() Self
- collect_async(...) dict[str, Awaitable[polars.DataFrame] | _GeventDataFrameResult[polars.DataFrame]]
- collect_batches(*, ...) dict[str, Iterator[polars.DataFrame]]
- collect_model_blueprint(...) dict[str, str]
- collect_schema() dict[str, Schema]
- count() Self
- drop_nans(...) Self
- drop_nulls(...) Self
- filter(*predicates, ...) Self
- first() Self
-
gather_every(n: int, offset: int =
0) Self
- interpolate() Self
- last() Self
- map_batches(function, ...) Self
- match_to_schema(schema: SchemaDict | Schema, *, ...) Self
- max() Self
- mean() Self
- median() Self
- melt(...) Self
- merge_sorted(other: LazyDataset[U] | polars.LazyFrame, key) Self
- min() Self
- null_count() Self
- pipe_with_schema(function) Self
- remove(*predicates, ...) Self
- reverse() Self
- select(*exprs: IntoExpr | Iterable[IntoExpr], **named_exprs) Self
- select_seq(*exprs: IntoExpr | Iterable[IntoExpr], ...) Self
- show_graph(*, optimized: bool = True, ...) dict[str, str | None]
- skim(...) dict[str, Collection]
-
sql(query: str, *, table_name: str =
'self') Self
- sum() Self
- unique(...) Self
- unpivot(...) Self
- with_columns(*exprs: IntoExpr | Iterable[IntoExpr], ...) Self
- with_columns_seq(*exprs: IntoExpr | Iterable[IntoExpr], ...) Self
- with_context(other: Self | list[Self]) Self
-
with_row_count(name: str =
'row_nr', offset: int =0) Self
-
with_row_index(name: str =
'index', offset: int =0) Self
- without_model() dict[str, LazyDataset[Any]]
- to_dataframe() dict[str, TypeAliasForwardRef('polars.DataFrame')]
- to_lazyframe() dict[str, TypeAliasForwardRef('polars.LazyFrame')]
Methods¶
- values() ValuesView[_DST]
-
concat(*, with_key_column: bool | str =
False, ...) _DST Concatenate all items into a single Dataset/LazyDataset.
Properties¶
Export¶