Skip to content

Commit ff71390

Browse files
committed
DOC: Adding examples to DataFrameGroupBy.rank pandas-dev#38972
1 parent adbdcb1 commit ff71390

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/core/groupby/groupby.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -2686,8 +2686,10 @@ def rank(
26862686
26872687
Examples
26882688
--------
2689-
>>> df = pd.DataFrame({'group': ['a', 'a', 'a', 'b', 'a', 'b', 'b', 'b', 'b', 'a'],
2690-
... 'value': [.2, .4, .2, 0.01, .3, .11, .21, .4, .01, 0.2]})
2689+
>>> df = pd.DataFrame({'group': ['a', 'a', 'a', 'b',
2690+
... 'a', 'b', 'b', 'b', 'b', 'a'],
2691+
... 'value': [.2, .4, .2, 0.01,
2692+
... .3, .11, .21, .4, .01, 0.2]})
26912693
>>> df
26922694
group value
26932695
0 a 0.20

0 commit comments

Comments
 (0)