Skip to content

Commit 9cb8129

Browse files
committed
DOC: Fix quotes position in pandas.core (pandas-dev#24071)
1 parent 9d66bdf commit 9cb8129

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

pandas/core/groupby/generic.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,9 @@ def value_counts(self, normalize=False, sort=True, ascending=False,
12161216
return Series(out, index=mi, name=self._selection_name)
12171217

12181218
def count(self):
1219-
""" Compute count of group, excluding missing values """
1219+
"""
1220+
Compute count of group, excluding missing values
1221+
"""
12201222
ids, _, ngroups = self.grouper.group_info
12211223
val = self.obj.get_values()
12221224

@@ -1514,7 +1516,9 @@ def _fill(self, direction, limit=None):
15141516
return concat((self._wrap_transformed_output(output), res), axis=1)
15151517

15161518
def count(self):
1517-
""" Compute count of group, excluding missing values """
1519+
"""
1520+
Compute count of group, excluding missing values
1521+
"""
15181522
from pandas.core.dtypes.missing import _isna_ndarraylike as _isna
15191523

15201524
data, _ = self._get_data_to_aggregate()

pandas/core/groupby/groupby.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class providing the base-class of operations.
172172
{examples}
173173
""")
174174

175-
_pipe_template = """\
175+
_pipe_template = """
176176
Apply a function `func` with arguments to this %(klass)s object and return
177177
the function's result.
178178
@@ -557,7 +557,8 @@ def __getattr__(self, attr):
557557
B
558558
A
559559
a 2
560-
b 2""")
560+
b 2
561+
""")
561562
@Appender(_pipe_template)
562563
def pipe(self, func, *args, **kwargs):
563564
return com._pipe(self, func, *args, **kwargs)
@@ -1256,7 +1257,9 @@ def groupby_function(name, alias, npfunc,
12561257
numeric_only=True, _convert=False,
12571258
min_count=-1):
12581259

1259-
_local_template = "Compute %(f)s of group values"
1260+
_local_template = """
1261+
Compute %(f)s of group values
1262+
"""
12601263

12611264
@Substitution(name='groupby', f=name)
12621265
@Appender(_common_see_also)

0 commit comments

Comments
 (0)