Skip to content

Commit 43ed81f

Browse files
DOC: fix PR07,SA01,ES01 for pandas.plotting.scatter_matrix (#60572)
1 parent 8e119a7 commit 43ed81f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9797
-i "pandas.errors.ValueLabelTypeMismatch SA01" \
9898
-i "pandas.io.json.build_table_schema PR07,RT03,SA01" \
9999
-i "pandas.plotting.andrews_curves RT03,SA01" \
100-
-i "pandas.plotting.scatter_matrix PR07,SA01" \
101100
-i "pandas.tseries.offsets.BDay PR02,SA01" \
102101
-i "pandas.tseries.offsets.BQuarterBegin.is_on_offset GL08" \
103102
-i "pandas.tseries.offsets.BQuarterBegin.n GL08" \

pandas/plotting/_misc.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,21 @@ def scatter_matrix(
178178
"""
179179
Draw a matrix of scatter plots.
180180
181+
Each pair of numeric columns in the DataFrame is plotted against each other,
182+
resulting in a matrix of scatter plots. The diagonal plots can display either
183+
histograms or Kernel Density Estimation (KDE) plots for each variable.
184+
181185
Parameters
182186
----------
183187
frame : DataFrame
188+
The data to be plotted.
184189
alpha : float, optional
185190
Amount of transparency applied.
186191
figsize : (float,float), optional
187192
A tuple (width, height) in inches.
188193
ax : Matplotlib axis object, optional
194+
An existing Matplotlib axis object for the plots. If None, a new axis is
195+
created.
189196
grid : bool, optional
190197
Setting this to True will show the grid.
191198
diagonal : {'hist', 'kde'}
@@ -208,6 +215,14 @@ def scatter_matrix(
208215
numpy.ndarray
209216
A matrix of scatter plots.
210217
218+
See Also
219+
--------
220+
plotting.parallel_coordinates : Plots parallel coordinates for multivariate data.
221+
plotting.andrews_curves : Generates Andrews curves for visualizing clusters of
222+
multivariate data.
223+
plotting.radviz : Creates a RadViz visualization.
224+
plotting.bootstrap_plot : Visualizes uncertainty in data via bootstrap sampling.
225+
211226
Examples
212227
--------
213228

0 commit comments

Comments
 (0)