pixano.analytics.feature_statistics
categorical_stats(df, split, field_name)
Compute feature categorical statistics
Parameters:
Name | Type | Description | Default |
---|---|---|---|
df
|
DataFrame
|
Input DataFrame |
required |
split
|
str
|
DataFrame split |
required |
field_name
|
str
|
Selected field |
required |
Returns:
Type | Description |
---|---|
list[dict]
|
Feature statistics |
Source code in pixano/analytics/feature_statistics.py
compute_additional_data(data_table)
Convert Table to DataFrame and add resolution and aspect ratio
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_table
|
Table
|
Input Table |
required |
Returns:
Type | Description |
---|---|
DataFrame
|
DataFrame with added resolution and aspect ratio |
Source code in pixano/analytics/feature_statistics.py
compute_stats(df, split, feature)
Compute feature statistics
Parameters:
Name | Type | Description | Default |
---|---|---|---|
df
|
DataFrame
|
Input DataFrame |
required |
split
|
str
|
DataFrame split |
required |
feature
|
dict
|
Selected feature |
required |
Returns:
Type | Description |
---|---|
list[dict]
|
Feature statistics |
Source code in pixano/analytics/feature_statistics.py
numerical_stats(df, split, field_name, field_range=None)
Compute feature numerical statistics
Parameters:
Name | Type | Description | Default |
---|---|---|---|
df
|
DataFrame
|
Input DataFrame |
required |
split
|
str
|
DataFrame split |
required |
field_name
|
str
|
Selected field |
required |
field_range
|
list[float]
|
Selected field range. Defaults to None. |
None
|
Returns:
Type | Description |
---|---|
list[dict]
|
Feature statistics |
Source code in pixano/analytics/feature_statistics.py
objects_table_to_df(data_table, field)
Convert a field from the objects column to a DataFrame
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_table
|
Table
|
Table with an objects column |
required |
field
|
str
|
Selected field from the objects column |
required |
Returns:
Type | Description |
---|---|
DataFrame
|
Selected field as DataFrame |