Skip to content

Commit 2518040

Browse files
jbrockmendelsimonjayhawkins
authored andcommitted
STY: whitespace before class docstringsd (#28209)
1 parent bc65fe6 commit 2518040

File tree

13 files changed

+4
-30
lines changed

13 files changed

+4
-30
lines changed

pandas/core/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747

4848

4949
class PandasObject(DirNamesMixin):
50-
5150
"""baseclass for various pandas objects"""
5251

5352
@property

pandas/core/computation/expr.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ def f(cls):
367367
@disallow(_unsupported_nodes)
368368
@add_ops(_op_classes)
369369
class BaseExprVisitor(ast.NodeVisitor):
370-
371-
"""Custom ast walker. Parsers of other engines should subclass this class
370+
"""
371+
Custom ast walker. Parsers of other engines should subclass this class
372372
if necessary.
373373
374374
Parameters
@@ -803,8 +803,8 @@ def __init__(self, env, engine, parser, preparser=lambda x: x):
803803

804804

805805
class Expr:
806-
807-
"""Object encapsulating an expression.
806+
"""
807+
Object encapsulating an expression.
808808
809809
Parameters
810810
----------

pandas/core/computation/pytables.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,6 @@ def _validate_where(w):
478478

479479

480480
class Expr(expr.Expr):
481-
482481
""" hold a pytables like expression, comprised of possibly multiple 'terms'
483482
484483
Parameters
@@ -573,7 +572,6 @@ def evaluate(self):
573572

574573

575574
class TermValue:
576-
577575
""" hold a term value the we use to construct a condition/filter """
578576

579577
def __init__(self, value, converted, kind):

pandas/core/groupby/groupby.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,6 @@ def _apply_filter(self, indices, dropna):
10111011

10121012

10131013
class GroupBy(_GroupBy):
1014-
10151014
"""
10161015
Class for grouping and aggregating relational data.
10171016

pandas/core/groupby/grouper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ def __repr__(self):
217217

218218

219219
class Grouping:
220-
221220
"""
222221
Holds the grouping information for a single key
223222

pandas/core/groupby/ops.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,6 @@ def _aggregate_series_pure_python(self, obj, func):
706706

707707

708708
class BinGrouper(BaseGrouper):
709-
710709
"""
711710
This is an internal Grouper class
712711

pandas/core/indexes/frozen.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323

2424
class FrozenList(PandasObject, list):
25-
2625
"""
2726
Container that doesn't allow setting item *but*
2827
because it's technically non-hashable, will be used

pandas/core/sorting.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ def nargsort(items, kind="quicksort", ascending=True, na_position="last"):
271271

272272

273273
class _KeyMapper:
274-
275274
"""
276275
Ease my suffering. Map compressed group id -> key tuple
277276
"""

pandas/io/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,6 @@ def __next__(self) -> str:
576576

577577

578578
class UTF8Recoder(BaseIterator):
579-
580579
"""
581580
Iterator that reads an encoded stream and re-encodes the input to UTF-8
582581
"""

pandas/io/packers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,6 @@ def __init__(
846846

847847

848848
class Iterator:
849-
850849
""" manage the unpacking iteration,
851850
close the file on completion """
852851

0 commit comments

Comments
 (0)