Skip to content

Commit f7e0f16

Browse files
Merge pull request #9803 from evanpw/interpolate_example
DOC: Fix broken formatting on docstring examples with first-line comments
2 parents e4cb0f8 + 856bf21 commit f7e0f16

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
@@ -2735,7 +2735,8 @@ def interpolate(self, method='linear', axis=0, limit=None, inplace=False,
27352735
Examples
27362736
--------
27372737
2738-
# Filling in NaNs:
2738+
Filling in NaNs
2739+
27392740
>>> s = pd.Series([0, 1, np.nan, 3])
27402741
>>> s.interpolate()
27412742
0 0
@@ -2962,13 +2963,13 @@ def groupby(self, by=None, axis=0, level=None, as_index=True, sort=True,
29622963
29632964
Examples
29642965
--------
2965-
# DataFrame result
2966-
>>> data.groupby(func, axis=0).mean()
2966+
DataFrame results
29672967
2968-
# DataFrame result
2968+
>>> data.groupby(func, axis=0).mean()
29692969
>>> data.groupby(['col1', 'col2'])['col3'].mean()
29702970
2971-
# DataFrame with hierarchical index
2971+
DataFrame with hierarchical index
2972+
29722973
>>> data.groupby(['col1', 'col2']).mean()
29732974
29742975
Returns

0 commit comments

Comments
 (0)