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

-1
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

+4-4
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

-2
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

-1
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

-1
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

-1
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

-1
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

-1
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

-1
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

-1
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

pandas/io/pytables.py

-14
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,6 @@ def _is_metadata_of(group, parent_group):
429429

430430

431431
class HDFStore:
432-
433432
"""
434433
Dict-like IO interface for storing pandas objects in PyTables.
435434
@@ -1546,7 +1545,6 @@ def _read_group(self, group, **kwargs):
15461545

15471546

15481547
class TableIterator:
1549-
15501548
""" define the iteration interface on a table
15511549
15521550
Parameters
@@ -1654,7 +1652,6 @@ def get_result(self, coordinates=False):
16541652

16551653

16561654
class IndexCol:
1657-
16581655
""" an index column description class
16591656
16601657
Parameters
@@ -1968,7 +1965,6 @@ def write_metadata(self, handler):
19681965

19691966

19701967
class GenericIndexCol(IndexCol):
1971-
19721968
""" an index which is not represented in the data of the table """
19731969

19741970
@property
@@ -2006,7 +2002,6 @@ def set_attr(self):
20062002

20072003

20082004
class DataCol(IndexCol):
2009-
20102005
""" a data holding column, by definition this is not indexable
20112006
20122007
Parameters
@@ -2456,7 +2451,6 @@ def set_attr(self):
24562451

24572452

24582453
class DataIndexableCol(DataCol):
2459-
24602454
""" represent a data column that can be indexed """
24612455

24622456
is_data_indexable = True
@@ -2479,15 +2473,13 @@ def get_atom_timedelta64(self, block):
24792473

24802474

24812475
class GenericDataIndexableCol(DataIndexableCol):
2482-
24832476
""" represent a generic pytables data column """
24842477

24852478
def get_attr(self):
24862479
pass
24872480

24882481

24892482
class Fixed:
2490-
24912483
""" represent an object in my store
24922484
facilitate read/write of various types of objects
24932485
this is an abstract base class
@@ -2655,7 +2647,6 @@ def delete(self, where=None, start=None, stop=None, **kwargs):
26552647

26562648

26572649
class GenericFixed(Fixed):
2658-
26592650
""" a generified fixed version """
26602651

26612652
_index_type_map = {DatetimeIndex: "datetime", PeriodIndex: "period"}
@@ -3252,7 +3243,6 @@ class FrameFixed(BlockManagerFixed):
32523243

32533244

32543245
class Table(Fixed):
3255-
32563246
""" represent a table:
32573247
facilitate read/write of various types of tables
32583248
@@ -4127,7 +4117,6 @@ def read_column(self, column, where=None, start=None, stop=None):
41274117

41284118

41294119
class WORMTable(Table):
4130-
41314120
""" a write-once read-many table: this format DOES NOT ALLOW appending to a
41324121
table. writing is a one-time operation the data are stored in a format
41334122
that allows for searching the data on disk
@@ -4149,7 +4138,6 @@ def write(self, **kwargs):
41494138

41504139

41514140
class LegacyTable(Table):
4152-
41534141
""" an appendable table: allow append/query/delete operations to a
41544142
(possibly) already existing appendable table this table ALLOWS
41554143
append (but doesn't require them), and stores the data in a format
@@ -4603,7 +4591,6 @@ def write(self, **kwargs):
46034591

46044592

46054593
class AppendableMultiFrameTable(AppendableFrameTable):
4606-
46074594
""" a frame with a multi-index """
46084595

46094596
table_type = "appendable_multiframe"
@@ -4962,7 +4949,6 @@ def _need_convert(kind):
49624949

49634950

49644951
class Selection:
4965-
49664952
"""
49674953
Carries out a selection operation on a tables.Table object.
49684954

pandas/tests/io/test_sql.py

-1
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ def _transaction_test(self):
565565

566566

567567
class _TestSQLApi(PandasSQLTest):
568-
569568
"""
570569
Base class to test the public API.
571570

pandas/tests/reshape/test_concat.py

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def sort_with_none(request):
5050

5151

5252
class TestConcatAppendCommon:
53-
5453
"""
5554
Test common dtype coercion rules between concat and append.
5655
"""

0 commit comments

Comments
 (0)