Skip to content

Commit 856bf21

Browse files
committed
DOC: Fix broken formatting on docstring examples with first-line comments
1 parent ea1c501 commit 856bf21

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pandas/core/generic.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -2723,7 +2723,8 @@ def interpolate(self, method='linear', axis=0, limit=None, inplace=False,
27232723
Examples
27242724
--------
27252725
2726-
# Filling in NaNs:
2726+
Filling in NaNs
2727+
27272728
>>> s = pd.Series([0, 1, np.nan, 3])
27282729
>>> s.interpolate()
27292730
0 0
@@ -2902,13 +2903,13 @@ def groupby(self, by=None, axis=0, level=None, as_index=True, sort=True,
29022903
29032904
Examples
29042905
--------
2905-
# DataFrame result
2906-
>>> data.groupby(func, axis=0).mean()
2906+
DataFrame results
29072907
2908-
# DataFrame result
2908+
>>> data.groupby(func, axis=0).mean()
29092909
>>> data.groupby(['col1', 'col2'])['col3'].mean()
29102910
2911-
# DataFrame with hierarchical index
2911+
DataFrame with hierarchical index
2912+
29122913
>>> data.groupby(['col1', 'col2']).mean()
29132914
29142915
Returns

0 commit comments

Comments
 (0)