API Reference
This page is auto-generated from Python docstrings.
eda_vizkit
Public API for eda-vizkit.
save_chart
save_chart(
ax: Axes,
path: str | Path,
*,
bbox_inches: str | None = 'tight',
) -> None
Save chart.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ax
|
Axes
|
The matplotlib Axes object containing the chart to save. |
required |
path
|
str | Path
|
The file path where the chart should be saved. |
required |
bbox_inches
|
str | None
|
The bounding box in inches. Defaults to "tight". |
'tight'
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If the Axes is not attached to a Figure. |
Source code in src/eda_vizkit/save.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | |
show_categorical_distribution
show_categorical_distribution(
df: DataFrame, *, column: str, ax: Axes | None = None
) -> Axes
Show category frequencies for one categorical variable.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
The DataFrame containing the data. |
required |
column
|
str
|
The name of the categorical column. |
required |
ax
|
Axes | None
|
The matplotlib Axes object to plot on. If None, a new figure and axes will be created. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Axes |
Axes
|
The matplotlib Axes object containing the plot. |
Source code in src/eda_vizkit/distributions.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | |
show_missing_values
show_missing_values(
df: DataFrame, *, ax: Axes | None = None
) -> Axes
Show missing-value counts for DataFrame columns.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
The DataFrame containing the data. |
required |
ax
|
Axes | None
|
The matplotlib Axes object to plot on. If None, a new figure and axes will be created. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Axes |
Axes
|
The matplotlib Axes object containing the plot. |
Source code in src/eda_vizkit/quality.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |
show_numeric_by_category
show_numeric_by_category(
df: DataFrame,
*,
numeric: str,
category: str,
ax: Axes | None = None,
) -> Axes
Show a numeric distribution across categories.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
The DataFrame containing the data. |
required |
numeric
|
str
|
The name of the numeric column. |
required |
category
|
str
|
The name of the categorical column. |
required |
ax
|
Axes | None
|
The matplotlib Axes object to plot on. If None, a new figure and axes will be created. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Axes |
Axes
|
The matplotlib Axes object containing the plot. |
Source code in src/eda_vizkit/relationships.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
show_numeric_distribution
show_numeric_distribution(
df: DataFrame,
*,
column: str,
bins: int = 20,
ax: Axes | None = None,
) -> Axes
Show the distribution of one numeric variable.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
The DataFrame containing the data. |
required |
column
|
str
|
The name of the numeric column. |
required |
bins
|
int
|
The number of bins for the histogram. Defaults to 20. |
20
|
ax
|
Axes | None
|
The matplotlib Axes object to plot on. If None, a new figure and axes will be created. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Axes |
Axes
|
The matplotlib Axes object containing the plot. |
Source code in src/eda_vizkit/distributions.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
show_numeric_relationship
show_numeric_relationship(
df: DataFrame, *, x: str, y: str, ax: Axes | None = None
) -> Axes
Show the relationship between two numeric variables.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
The DataFrame containing the data. |
required |
x
|
str
|
The name of the numeric column to be used as the x-axis. |
required |
y
|
str
|
The name of the numeric column to be used as the y-axis. |
required |
ax
|
Axes | None
|
The matplotlib Axes object to plot on. If None, a new figure and axes will be created. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Axes |
Axes
|
The matplotlib Axes object containing the plot. |
Source code in src/eda_vizkit/relationships.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
distributions
Distribution visualizations for exploratory data analysis.
show_categorical_distribution
show_categorical_distribution(
df: DataFrame, *, column: str, ax: Axes | None = None
) -> Axes
Show category frequencies for one categorical variable.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
The DataFrame containing the data. |
required |
column
|
str
|
The name of the categorical column. |
required |
ax
|
Axes | None
|
The matplotlib Axes object to plot on. If None, a new figure and axes will be created. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Axes |
Axes
|
The matplotlib Axes object containing the plot. |
Source code in src/eda_vizkit/distributions.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | |
show_numeric_distribution
show_numeric_distribution(
df: DataFrame,
*,
column: str,
bins: int = 20,
ax: Axes | None = None,
) -> Axes
Show the distribution of one numeric variable.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
The DataFrame containing the data. |
required |
column
|
str
|
The name of the numeric column. |
required |
bins
|
int
|
The number of bins for the histogram. Defaults to 20. |
20
|
ax
|
Axes | None
|
The matplotlib Axes object to plot on. If None, a new figure and axes will be created. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Axes |
Axes
|
The matplotlib Axes object containing the plot. |
Source code in src/eda_vizkit/distributions.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
quality
Data-quality visualizations for exploratory data analysis.
show_missing_values
show_missing_values(
df: DataFrame, *, ax: Axes | None = None
) -> Axes
Show missing-value counts for DataFrame columns.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
The DataFrame containing the data. |
required |
ax
|
Axes | None
|
The matplotlib Axes object to plot on. If None, a new figure and axes will be created. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Axes |
Axes
|
The matplotlib Axes object containing the plot. |
Source code in src/eda_vizkit/quality.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |
relationships
Relationship visualizations for exploratory data analysis.
show_numeric_by_category
show_numeric_by_category(
df: DataFrame,
*,
numeric: str,
category: str,
ax: Axes | None = None,
) -> Axes
Show a numeric distribution across categories.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
The DataFrame containing the data. |
required |
numeric
|
str
|
The name of the numeric column. |
required |
category
|
str
|
The name of the categorical column. |
required |
ax
|
Axes | None
|
The matplotlib Axes object to plot on. If None, a new figure and axes will be created. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Axes |
Axes
|
The matplotlib Axes object containing the plot. |
Source code in src/eda_vizkit/relationships.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
show_numeric_relationship
show_numeric_relationship(
df: DataFrame, *, x: str, y: str, ax: Axes | None = None
) -> Axes
Show the relationship between two numeric variables.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
The DataFrame containing the data. |
required |
x
|
str
|
The name of the numeric column to be used as the x-axis. |
required |
y
|
str
|
The name of the numeric column to be used as the y-axis. |
required |
ax
|
Axes | None
|
The matplotlib Axes object to plot on. If None, a new figure and axes will be created. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Axes |
Axes
|
The matplotlib Axes object containing the plot. |
Source code in src/eda_vizkit/relationships.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
save
Save visualization outputs.
save_chart
save_chart(
ax: Axes,
path: str | Path,
*,
bbox_inches: str | None = 'tight',
) -> None
Save chart.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ax
|
Axes
|
The matplotlib Axes object containing the chart to save. |
required |
path
|
str | Path
|
The file path where the chart should be saved. |
required |
bbox_inches
|
str | None
|
The bounding box in inches. Defaults to "tight". |
'tight'
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If the Axes is not attached to a Figure. |
Source code in src/eda_vizkit/save.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | |