Functions

Config

toggle_string_cache(toggle)

Turn on/off the global string cache.

StringCache()

Context manager that allows data sources to share the same categorical features.

Conversion

from_dict(data[, columns])

Construct a DataFrame from a dictionary of sequences.

from_dicts(dicts)

Construct a DataFrame from a sequence of dictionaries.

from_records(data[, columns, orient])

Construct a DataFrame from a numpy ndarray or sequence of sequences.

from_arrow(a[, rechunk])

Create a DataFrame or Series from an Arrow Table or Array.

from_pandas()

Construct a Polars DataFrame or Series from a pandas DataFrame or Series.

Eager functions

get_dummies(df)

Convert categorical variables into dummy/indicator variables.

concat()

Aggregate all the Dataframes/Series in a List of DataFrames/Series to a single DataFrame/Series.

repeat()

Repeat a single value n times.

arg_where(mask)

Get index values where Boolean mask evaluate True.

date_range(low, high, interval[, closed, ...])

Create a date range of type Datetime.

Parallelization

collect_all(lazy_frames[, type_coercion, ...])

Collect multiple LazyFrames at the same time.