vDataFrame.outliers_plot¶
In [ ]:
vDataFrame.outliers_plot(columns: list,
threshold: float = 3.0,
color: str = "orange",
outliers_color: str = "black",
inliers_color: str = "white",
inliers_border_color: str = "red",
max_nb_points: int = 500,
ax=None,
**style_kwds,)
Draws a plot of the global outliers of one or two columns based on their ZSCORE.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
columns | list | ❌ | List of the vcolumns. The list must have one or two elements. |
threshold | float | ✓ | ZSCORE threshold used to detect outliers. |
color | str | ✓ | Inliers area color. |
outliers_color | str | ✓ | Outliers color. |
inliers_color | str | ✓ | Inliers color. |
inliers_border_color | str | ✓ | Inliers border color. |
cmap | str | ✓ | Color Map. |
max_nb_points | int | ✓ | Maximum number of points to display. |
ax | Matplotlib axes object | ✓ | The axes to plot on. |
**style_kwds | any | ✓ | Any optional parameter to pass to the Matplotlib functions. |
In [16]:
from verticapy.datasets import load_titanic
titanic = load_titanic()
display(titanic)
In [17]:
titanic.outliers_plot(["fare"])
Out[17]:
In [18]:
titanic.outliers_plot(["fare", "age"])
Out[18]:
