Stats
get_column_max(df, column_name)
¶
Get the maximum value of a column in a DataFrame.
PARAMETER | DESCRIPTION |
---|---|
df
|
The input DataFrame.
TYPE:
|
column_name
|
The name of the column to find the maximum for.
TYPE:
|
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:
|
column_name
|
The name of the column to compute the mean for.
TYPE:
|
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:
|
column_name
|
The name of the column to find the minimum for.
TYPE:
|
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:
|
column_name
|
The name of the column to compute the statistic for.
TYPE:
|
stat_func
|
The statistical function to apply (e.g., pl.mean, pl.min).
TYPE:
|
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:
|
column_name
|
The name of the column to compute statistics for.
TYPE:
|
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:
|
column_name
|
The name of the column to compute the standard deviation for.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
float
|
The standard deviation of the specified column. |