Skip to content

DOC: fix EX02 errors in docstrings #51614

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 27, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.plotting.andrews_curves \
pandas.plotting.autocorrelation_plot \
pandas.plotting.lag_plot \
pandas.plotting.parallel_coordinates \
pandas.plotting.radviz \
pandas.tseries.frequencies.to_offset
pandas.plotting.parallel_coordinates
RET=$(($RET + $?)) ; echo $MSG "DONE"

fi
Expand Down
3 changes: 2 additions & 1 deletion pandas/_libs/tslibs/offsets.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -4109,6 +4109,7 @@ cpdef to_offset(freq):

Examples
--------
>>> from pandas.tseries.frequencies import to_offset
>>> to_offset("5min")
<5 * Minutes>

Expand All @@ -4124,7 +4125,7 @@ cpdef to_offset(freq):
>>> to_offset(pd.Timedelta(days=1))
<Day>

>>> to_offset(Hour())
>>> to_offset(pd.offsets.Hour())
<Hour>
"""
if freq is None:
Expand Down
2 changes: 1 addition & 1 deletion pandas/plotting/_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def radviz(
... }
... )
>>> pd.plotting.radviz(df, 'Category')
<AxesSubplot: xlabel='y(t)', ylabel='y(t + 1)'>
<AxesSubplot: >
"""
plot_backend = _get_plot_backend("matplotlib")
return plot_backend.radviz(
Expand Down