Skip to content

Commit ced9833

Browse files
authored
DOC: fix EX02 errors for three docstrings in plotting (#51686)
three plotting docstrings updated
1 parent aeafdd6 commit ced9833

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

ci/code_checks.sh

-3
Original file line numberDiff line numberDiff line change
@@ -564,9 +564,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
564564
pandas.api.types.is_datetime64_any_dtype \
565565
pandas.api.types.is_datetime64_ns_dtype \
566566
pandas.api.types.is_datetime64tz_dtype \
567-
pandas.plotting.andrews_curves \
568-
pandas.plotting.autocorrelation_plot \
569-
pandas.plotting.lag_plot \
570567
pandas.plotting.parallel_coordinates
571568
RET=$(($RET + $?)) ; echo $MSG "DONE"
572569

pandas/plotting/_misc.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,7 @@ def andrews_curves(
314314
... 'https://raw.githubusercontent.com/pandas-dev/'
315315
... 'pandas/main/pandas/tests/io/data/csv/iris.csv'
316316
... )
317-
>>> pd.plotting.andrews_curves(df, 'Name')
318-
<AxesSubplot: title={'center': 'width'}>
317+
>>> pd.plotting.andrews_curves(df, 'Name') # doctest: +SKIP
319318
"""
320319
plot_backend = _get_plot_backend("matplotlib")
321320
return plot_backend.andrews_curves(
@@ -499,8 +498,7 @@ def lag_plot(series: Series, lag: int = 1, ax: Axes | None = None, **kwds) -> Ax
499498
>>> np.random.seed(5)
500499
>>> x = np.cumsum(np.random.normal(loc=1, scale=5, size=50))
501500
>>> s = pd.Series(x)
502-
>>> s.plot()
503-
<AxesSubplot: xlabel='Midrange'>
501+
>>> s.plot() # doctest: +SKIP
504502
505503
A lag plot with ``lag=1`` returns
506504
@@ -542,8 +540,7 @@ def autocorrelation_plot(series: Series, ax: Axes | None = None, **kwargs) -> Ax
542540
543541
>>> spacing = np.linspace(-9 * np.pi, 9 * np.pi, num=1000)
544542
>>> s = pd.Series(0.7 * np.random.rand(1000) + 0.3 * np.sin(spacing))
545-
>>> pd.plotting.autocorrelation_plot(s)
546-
<AxesSubplot: title={'center': 'width'}, xlabel='Lag', ylabel='Autocorrelation'>
543+
>>> pd.plotting.autocorrelation_plot(s) # doctest: +SKIP
547544
"""
548545
plot_backend = _get_plot_backend("matplotlib")
549546
return plot_backend.autocorrelation_plot(series=series, ax=ax, **kwargs)

0 commit comments

Comments
 (0)