Skip to content

Commit

Permalink
DOC: Fix quotes position in pandas.core (pandas-dev#24071)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcwatt committed Apr 27, 2019
1 parent 64104ec commit a53e500
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 6 additions & 2 deletions pandas/core/groupby/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,9 @@ def value_counts(self, normalize=False, sort=True, ascending=False,
return Series(out, index=mi, name=self._selection_name)

def count(self):
""" Compute count of group, excluding missing values """
"""
Compute count of group, excluding missing values
"""
ids, _, ngroups = self.grouper.group_info
val = self.obj.get_values()

Expand Down Expand Up @@ -1479,7 +1481,9 @@ def _fill(self, direction, limit=None):
return concat((self._wrap_transformed_output(output), res), axis=1)

def count(self):
""" Compute count of group, excluding missing values """
"""
Compute count of group, excluding missing values
"""
from pandas.core.dtypes.missing import _isna_ndarraylike as _isna

data, _ = self._get_data_to_aggregate()
Expand Down
9 changes: 6 additions & 3 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class providing the base-class of operations.
{examples}
""")

_pipe_template = """\
_pipe_template = """
Apply a function `func` with arguments to this %(klass)s object and return
the function's result.
Expand Down Expand Up @@ -557,7 +557,8 @@ def __getattr__(self, attr):
B
A
a 2
b 2""")
b 2
""")
@Appender(_pipe_template)
def pipe(self, func, *args, **kwargs):
return com._pipe(self, func, *args, **kwargs)
Expand Down Expand Up @@ -1257,7 +1258,9 @@ def groupby_function(name, alias, npfunc,
numeric_only=True, _convert=False,
min_count=-1):

_local_template = "Compute %(f)s of group values"
_local_template = """
Compute %(f)s of group values
"""

@Substitution(name='groupby', f=name)
@Appender(_common_see_also)
Expand Down

0 comments on commit a53e500

Please sign in to comment.