Skip to content

Commit 47e6ac9

Browse files
author
Deepan Das
committed
Fix SS06 formatting error pandas-dev#29254
1 parent 6c0e09f commit 47e6ac9

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

pandas/core/frame.py

+16-12
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,11 @@
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 structure with labeled axes (rows and columns).
314+
315+
Arithmetic operations align on both row and column labels.
316+
Can be thought of as a dict-like container for Series objects.
317+
The primary pandas data structure.
317318
318319
Parameters
319320
----------
@@ -4798,9 +4799,10 @@ def dropna(self, axis=0, how="any", thresh=None, subset=None, inplace=False):
47984799

47994800
def drop_duplicates(self, subset=None, keep="first", inplace=False):
48004801
"""
4801-
Return DataFrame with duplicate rows removed, optionally only
4802-
considering certain columns. Indexes, including time indexes
4803-
are ignored.
4802+
Return DataFrame with duplicate rows removed.
4803+
4804+
Optionally only considers certain columns.
4805+
Indexes, including time indexes are ignored.
48044806
48054807
Parameters
48064808
----------
@@ -4834,8 +4836,9 @@ def drop_duplicates(self, subset=None, keep="first", inplace=False):
48344836

48354837
def duplicated(self, subset=None, keep="first"):
48364838
"""
4837-
Return boolean Series denoting duplicate rows, optionally only
4838-
considering certain columns.
4839+
Return boolean Series denoting duplicate rows.
4840+
4841+
Optionally only considers certain columns.
48394842
48404843
Parameters
48414844
----------
@@ -7536,9 +7539,10 @@ def cov(self, min_periods=None):
75367539

75377540
def corrwith(self, other, axis=0, drop=False, method="pearson"):
75387541
"""
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.
7542+
Compute pairwise correlation between rows or columns of DataFrame.
7543+
7544+
Correlation is computed with rows or columns of Series or DataFrame.
7545+
DataFrames are first aligned along both axes before computing the correlations.
75427546
75437547
Parameters
75447548
----------

pandas/core/generic.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -9965,9 +9965,10 @@ def abs(self):
99659965

99669966
def describe(self, percentiles=None, include=None, exclude=None):
99679967
"""
9968-
Generate descriptive statistics that summarize the central tendency,
9969-
dispersion and shape of a dataset's distribution, excluding
9970-
``NaN`` values.
9968+
Generate descriptive statistics that summarizes a dataset.
9969+
9970+
Statistics summarizes the central tendency, dispersion and
9971+
shape of a dataset's distribution, excluding ``NaN`` values.
99719972
99729973
Analyzes both numeric and object series, as well
99739974
as ``DataFrame`` column sets of mixed data types. The output
@@ -10649,7 +10650,7 @@ def compound(self, axis=None, skipna=None, level=None):
1064910650
name,
1065010651
name2,
1065110652
axis_descr,
10652-
"Return unbiased skew over requested axis\nNormalized by N-1.",
10653+
"Return unbiased skew over requested axis normalized by N-1.",
1065310654
nanops.nanskew,
1065410655
)
1065510656
cls.kurt = _make_stat_function(
@@ -10659,7 +10660,7 @@ def compound(self, axis=None, skipna=None, level=None):
1065910660
name2,
1066010661
axis_descr,
1066110662
"Return unbiased kurtosis over requested axis using Fisher's "
10662-
"definition of\nkurtosis (kurtosis of normal == 0.0). Normalized "
10663+
"definition of kurtosis(kurtosis of normal == 0.0).\nNormalized "
1066310664
"by N-1.",
1066410665
nanops.nankurt,
1066510666
)

0 commit comments

Comments
 (0)