Skip to content

DOC: Fix broken formatting on docstring examples with first-line comments #9803

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 1 commit into from
Apr 28, 2015
Merged
Changes from all 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
11 changes: 6 additions & 5 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2723,7 +2723,8 @@ def interpolate(self, method='linear', axis=0, limit=None, inplace=False,
Examples
--------

# Filling in NaNs:
Filling in NaNs

>>> s = pd.Series([0, 1, np.nan, 3])
>>> s.interpolate()
0 0
Expand Down Expand Up @@ -2902,13 +2903,13 @@ def groupby(self, by=None, axis=0, level=None, as_index=True, sort=True,

Examples
--------
# DataFrame result
>>> data.groupby(func, axis=0).mean()
DataFrame results

# DataFrame result
>>> data.groupby(func, axis=0).mean()
>>> data.groupby(['col1', 'col2'])['col3'].mean()

# DataFrame with hierarchical index
DataFrame with hierarchical index

>>> data.groupby(['col1', 'col2']).mean()

Returns
Expand Down