Skip to content

Stats

get_column_max(df, column_name)

Get the maximum value of a column in a DataFrame.

PARAMETER DESCRIPTION
df

The input DataFrame.

TYPE: DataFrame

column_name

The name of the column to find the maximum for.

TYPE: str

RETURNS DESCRIPTION
float

The maximum value of the specified column.

get_column_mean(df, column_name)

Get the mean value of a column in a DataFrame.

PARAMETER DESCRIPTION
df

The input DataFrame.

TYPE: DataFrame

column_name

The name of the column to compute the mean for.

TYPE: str

RETURNS DESCRIPTION
float

The mean value of the specified column.

get_column_min(df, column_name)

Get the minimum value of a column in a DataFrame.

PARAMETER DESCRIPTION
df

The input DataFrame.

TYPE: DataFrame

column_name

The name of the column to find the minimum for.

TYPE: str

RETURNS DESCRIPTION
float

The minimum value of the specified column.

get_column_stat(df, column_name, stat_func)

Generic function to get a statistic for a column.

PARAMETER DESCRIPTION
df

The input DataFrame.

TYPE: DataFrame

column_name

The name of the column to compute the statistic for.

TYPE: str

stat_func

The statistical function to apply (e.g., pl.mean, pl.min).

TYPE: Callable[[str], Any]

RETURNS DESCRIPTION
float

The computed statistic for the specified column.

get_column_stats(df, column_name)

Compute baseline statistics for a specified column.

PARAMETER DESCRIPTION
df

The input DataFrame.

TYPE: DataFrame

column_name

The name of the column to compute statistics for.

TYPE: str

RETURNS DESCRIPTION
dict[str, float]

A dictionary containing the mean, min, max, and standard deviation of the specified column.

get_column_std(df, column_name)

Get the standard deviation of a column in a DataFrame.

PARAMETER DESCRIPTION
df

The input DataFrame.

TYPE: DataFrame

column_name

The name of the column to compute the standard deviation for.

TYPE: str

RETURNS DESCRIPTION
float

The standard deviation of the specified column.