Baixe o app para aproveitar ainda mais
Prévia do material em texto
[source] pandas.plotting.radviz pandas.plotting.radviz(frame, class_column, ax=None, color=None, colormap=None, **kwds) Plot a multidimensional dataset in 2D. Each Series in the DataFrame is represented as a evenly distributed slice on a circle. Each data point is rendered in the circle according to the value on each Series. Highly correlated Series in the DataFrame are placed closer on the unit circle. RadViz allow to project a N-dimensional data set into a 2D space where the influence of each dimension can be interpreted as a balance between the influence of all dimensions. More info available at the original article describing RadViz. Parameters: frame : DataFrame Object holding the data. class_column : str Column name containing the name of the data point category. ax : matplotlib.axes.Axes, optional A plot instance to which to add the information. color : list[str] or tuple[str], optional Assign a color to each category. Example: [‘blue’, ‘green’]. colormap : str or matplotlib.colors.Colormap, default None Colormap to select colors from. If string, load colormap with that name from matplotlib. **kwds Options to pass to matplotlib scatter plotting method. Returns: class:matplotlib.axes.Axes plotting.andrews_curves Plot clustering visualization. Examples >>> df = pd.DataFrame( ... { ... 'SepalLength': [6.5, 7.7, 5.1, 5.8, 7.6, 5.0, 5.4, 4.6, 6.7, 4.6], ... 'SepalWidth': [3.0, 3.8, 3.8, 2.7, 3.0, 2.3, 3.0, 3.2, 3.3, 3.6], ... 'PetalLength': [5.5, 6.7, 1.9, 5.1, 6.6, 3.3, 4.5, 1.4, 5.7, 1.0], ... 'PetalWidth': [1.8, 2.2, 0.4, 1.9, 2.1, 1.0, 1.5, 0.2, 2.1, 0.2], ... 'Category': [ ... 'virginica', ... 'virginica', ... 'setosa', ... 'virginica', ... 'virginica', ... 'versicolor', ... 'versicolor', ... 'setosa', ... 'virginica', ... 'setosa' ... ] ... } ... ) >>> pd.plotting.radviz(df, 'Category') See also Search the docs ... Input/output General functions Series DataFrame pandas arrays Index objects Date offsets Window GroupBy Resampling Style Plotting pandas.plotting.andrews_curves pandas.plotting.autocorrelation_plot pandas.plotting.bootstrap_plot pandas.plotting.boxplot pandas.plotting.deregister_matplotlib_c pandas.plotting.lag_plot pandas.plotting.parallel_coordinates pandas.plotting.plot_params pandas.plotting.radviz pandas.plotting.register_matplotlib_con pandas.plotting.scatter_matrix pandas.plotting.table General utility functions Extensions https://github.com/pandas-dev/pandas/blob/v1.3.1/pandas/plotting/_misc.py#L143-L220 https://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.135.889 https://matplotlib.org/stable/api/axes_api.html#matplotlib.axes.Axes https://matplotlib.org/stable/api/_as_gen/matplotlib.colors.Colormap.html#matplotlib.colors.Colormap https://pandas.pydata.org/docs/reference/io.html https://pandas.pydata.org/docs/reference/general_functions.html https://pandas.pydata.org/docs/reference/series.html https://pandas.pydata.org/docs/reference/frame.html https://pandas.pydata.org/docs/reference/arrays.html https://pandas.pydata.org/docs/reference/indexing.html https://pandas.pydata.org/docs/reference/offset_frequency.html https://pandas.pydata.org/docs/reference/window.html https://pandas.pydata.org/docs/reference/groupby.html https://pandas.pydata.org/docs/reference/resampling.html https://pandas.pydata.org/docs/reference/style.html https://pandas.pydata.org/docs/reference/plotting.html https://pandas.pydata.org/docs/reference/api/pandas.plotting.andrews_curves.html https://pandas.pydata.org/docs/reference/api/pandas.plotting.autocorrelation_plot.html https://pandas.pydata.org/docs/reference/api/pandas.plotting.bootstrap_plot.html https://pandas.pydata.org/docs/reference/api/pandas.plotting.boxplot.html https://pandas.pydata.org/docs/reference/api/pandas.plotting.deregister_matplotlib_converters.html https://pandas.pydata.org/docs/reference/api/pandas.plotting.lag_plot.html https://pandas.pydata.org/docs/reference/api/pandas.plotting.parallel_coordinates.html https://pandas.pydata.org/docs/reference/api/pandas.plotting.plot_params.html https://pandas.pydata.org/docs/reference/api/pandas.plotting.register_matplotlib_converters.html https://pandas.pydata.org/docs/reference/api/pandas.plotting.scatter_matrix.html https://pandas.pydata.org/docs/reference/api/pandas.plotting.table.html https://pandas.pydata.org/docs/reference/general_utility_functions.html https://pandas.pydata.org/docs/reference/extensions.html © Copyright 2008-2021, the pandas development team. Created using Sphinx 3.5.4. << pandas.plotting.plot_params pandas.plotting.register_matplotlib_converters >> http://sphinx-doc.org/ https://pandas.pydata.org/docs/reference/api/pandas.plotting.plot_params.html https://pandas.pydata.org/docs/reference/api/pandas.plotting.register_matplotlib_converters.html
Compartilhar