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_arrow(a[, rechunk])

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

from_dict(data[, columns])

Construct a DataFrame from a dictionary of sequences.

from_dicts(dicts[, infer_schema_length])

Construct a DataFrame from a sequence of dictionaries.

from_numpy(data[, columns, orient])

Construct a DataFrame from a numpy ndarray.

from_pandas()

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

from_records(data[, columns, orient, ...])

Construct a DataFrame from a sequence of sequences.

Eager/Lazy functions#

arg_where()

Return indices where condition evaluates True.

concat()

Aggregate multiple Dataframes/Series to a single DataFrame/Series.

cut(s, bins[, labels, break_point_label, ...])

Bin values into discrete values.

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

Create a range of type Datetime (or Date).

get_dummies(df, *[, columns])

Convert categorical variables into dummy/indicator variables.

repeat()

Repeat a single value n times.

Parallelization#

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

Collect multiple LazyFrames at the same time.

threadpool_size()

Get the size of polars; thread pool.