pandas.plotting.radviz
pandas 3.1.1 · Plotting · function
Place observations inside a circle according to their relative values across feature anchors.
Call syntax
pd.plotting.radviz(frame, class_column, ax=None, color=None, colormap=None, **kwds)Inspect the call
Run this code to inspect the callable and its parameters. Its data, backend, or environment is needed to execute the operation itself.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
frame |
Required Positional or keyword |
DataFrame Supply the DataFrame the function processes. |
class_column |
Required Positional or keyword |
str Provide the column indicating the class or group plotted. |
ax |
Optional Positional or keyword Default None |
matplotlib.axes.Axes Provide the existing Matplotlib axes on which to draw. |
color |
Optional Positional or keyword Default None |
list[str] or tuple[str] Choose the color or colors for the plot or styled cells. |
colormap |
Optional Positional or keyword Default None |
str or matplotlib.colors.Colormap Choose the color map used by the chart. |
**kwds |
Optional Additional keyword arguments |
Returns
matplotlib.axes.Axes
Example for a local Python session
import pandas as pd
import matplotlib
frame = pd.DataFrame({"team": ["A", "A", "B"], "units": [2., 5., 7.], "price": [4., 3., 2.]})
print(pd.plotting.radviz(frame, "team"))