Skip to content

Commit a53e500

Browse files
committed
DOC: Fix quotes position in pandas.core (#24071)
1 parent 64104ec commit a53e500

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
@@ -1181,7 +1181,9 @@ def value_counts(self, normalize=False, sort=True, ascending=False,
11811181
return Series(out, index=mi, name=self._selection_name)
11821182

11831183
def count(self):
1184-
""" Compute count of group, excluding missing values """
1184+
"""
1185+
Compute count of group, excluding missing values
1186+
"""
11851187
ids, _, ngroups = self.grouper.group_info
11861188
val = self.obj.get_values()
11871189

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

14811483
def count(self):
1482-
""" Compute count of group, excluding missing values """
1484+
"""
1485+
Compute count of group, excluding missing values
1486+
"""
14831487
from pandas.core.dtypes.missing import _isna_ndarraylike as _isna
14841488

14851489
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)
@@ -1257,7 +1258,9 @@ def groupby_function(name, alias, npfunc,
12571258
numeric_only=True, _convert=False,
12581259
min_count=-1):
12591260

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

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

0 commit comments

Comments
 (0)