Skip to content

DOC: Test doctests in pandas/core/groupby/groupby.py #26255

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 4 commits into from
May 1, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
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: 3 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests generic.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/generic.py \
pytest -q --doctest-modules \
pandas/core/generic.py \
pandas/core/groupby/groupby.py \
-k"-_set_axis_name -_xs -describe -droplevel -groupby -interpolate -pct_change -pipe -reindex -reindex_axis -to_json -transpose -values -xs -to_clipboard"
RET=$(($RET + $?)) ; echo $MSG "DONE"

Expand Down
3 changes: 0 additions & 3 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,6 @@ def mean(self, *args, **kwargs):
each group.

>>> df.groupby('A').mean()
>>>
B C
A
1 3.0 1.333333
Expand All @@ -1126,7 +1125,6 @@ def mean(self, *args, **kwargs):
Groupby two columns and return the mean of the remaining column.

>>> df.groupby(['A', 'B']).mean()
>>>
C
A B
1 2.0 2
Expand All @@ -1138,7 +1136,6 @@ def mean(self, *args, **kwargs):
the group.

>>> df.groupby('A')['B'].mean()
>>>
A
1 3.0
2 4.0
Expand Down