Skip to content

Commit 32e7891

Browse files
profwackoproost
authored andcommitted
Fix SS06 formatting errors (pandas-dev#29295)
1 parent e6479a4 commit 32e7891

File tree

2 files changed

+33
-21
lines changed

2 files changed

+33
-21
lines changed

pandas/core/frame.py

+18-11
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,12 @@
310310

311311
class DataFrame(NDFrame):
312312
"""
313-
Two-dimensional size-mutable, potentially heterogeneous tabular data
314-
structure with labeled axes (rows and columns). Arithmetic operations
315-
align on both row and column labels. Can be thought of as a dict-like
316-
container for Series objects. The primary pandas data structure.
313+
Two-dimensional, size-mutable, potentially heterogeneous tabular data.
314+
315+
Data structure also contains labeled axes (rows and columns).
316+
Arithmetic operations align on both row and column labels. Can be
317+
thought of as a dict-like container for Series objects. The primary
318+
pandas data structure.
317319
318320
Parameters
319321
----------
@@ -4798,8 +4800,9 @@ def dropna(self, axis=0, how="any", thresh=None, subset=None, inplace=False):
47984800

47994801
def drop_duplicates(self, subset=None, keep="first", inplace=False):
48004802
"""
4801-
Return DataFrame with duplicate rows removed, optionally only
4802-
considering certain columns. Indexes, including time indexes
4803+
Return DataFrame with duplicate rows removed.
4804+
4805+
Considering certain columns is optional. Indexes, including time indexes
48034806
are ignored.
48044807
48054808
Parameters
@@ -4834,8 +4837,9 @@ def drop_duplicates(self, subset=None, keep="first", inplace=False):
48344837

48354838
def duplicated(self, subset=None, keep="first"):
48364839
"""
4837-
Return boolean Series denoting duplicate rows, optionally only
4838-
considering certain columns.
4840+
Return boolean Series denoting duplicate rows.
4841+
4842+
Considering certain columns is optional.
48394843
48404844
Parameters
48414845
----------
@@ -7536,9 +7540,12 @@ def cov(self, min_periods=None):
75367540

75377541
def corrwith(self, other, axis=0, drop=False, method="pearson"):
75387542
"""
7539-
Compute pairwise correlation between rows or columns of DataFrame
7540-
with rows or columns of Series or DataFrame. DataFrames are first
7541-
aligned along both axes before computing the correlations.
7543+
Compute pairwise correlation.
7544+
7545+
Pairwise correlation is computed between rows or columns of
7546+
DataFrame with rows or columns of Series or DataFrame. DataFrames
7547+
are first aligned along both axes before computing the
7548+
correlations.
75427549
75437550
Parameters
75447551
----------

pandas/core/generic.py

+15-10
Original file line numberDiff line numberDiff line change
@@ -5156,8 +5156,9 @@ def pipe(self, func, *args, **kwargs):
51565156
_shared_docs[
51575157
"transform"
51585158
] = """
5159-
Call ``func`` on self producing a %(klass)s with transformed values
5160-
and that has the same axis length as self.
5159+
Call ``func`` on self producing a %(klass)s with transformed values.
5160+
5161+
Produced %(klass)s will have same axis length as self.
51615162
51625163
Parameters
51635164
----------
@@ -8741,8 +8742,9 @@ def ranker(data):
87418742
_shared_docs[
87428743
"align"
87438744
] = """
8744-
Align two objects on their axes with the
8745-
specified join method for each axis Index.
8745+
Align two objects on their axes with the specified join method.
8746+
8747+
Join method is specified for each axis Index.
87468748
87478749
Parameters
87488750
----------
@@ -9965,9 +9967,11 @@ def abs(self):
99659967

99669968
def describe(self, percentiles=None, include=None, exclude=None):
99679969
"""
9968-
Generate descriptive statistics that summarize the central tendency,
9969-
dispersion and shape of a dataset's distribution, excluding
9970-
``NaN`` values.
9970+
Generate descriptive statistics.
9971+
9972+
Descriptive statistics include those that summarize the central
9973+
tendency, dispersion and shape of a
9974+
dataset's distribution, excluding ``NaN`` values.
99719975
99729976
Analyzes both numeric and object series, as well
99739977
as ``DataFrame`` column sets of mixed data types. The output
@@ -10649,7 +10653,7 @@ def compound(self, axis=None, skipna=None, level=None):
1064910653
name,
1065010654
name2,
1065110655
axis_descr,
10652-
"Return unbiased skew over requested axis\nNormalized by N-1.",
10656+
"Return unbiased skew over requested axis.\n\nNormalized by N-1.",
1065310657
nanops.nanskew,
1065410658
)
1065510659
cls.kurt = _make_stat_function(
@@ -10658,8 +10662,9 @@ def compound(self, axis=None, skipna=None, level=None):
1065810662
name,
1065910663
name2,
1066010664
axis_descr,
10661-
"Return unbiased kurtosis over requested axis using Fisher's "
10662-
"definition of\nkurtosis (kurtosis of normal == 0.0). Normalized "
10665+
"Return unbiased kurtosis over requested axis.\n\n"
10666+
"Kurtosis obtained using Fisher's definition of\n"
10667+
"kurtosis (kurtosis of normal == 0.0). Normalized "
1066310668
"by N-1.",
1066410669
nanops.nankurt,
1066510670
)

0 commit comments

Comments
 (0)