Skip to content

Commit de6051e

Browse files
mcalingoproost
authored andcommitted
Fix SS06 formatting errors (pandas-dev#29263)
1 parent a3dc8ac commit de6051e

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

pandas/core/frame.py

+11-9
Original file line numberDiff line numberDiff line change
@@ -5252,8 +5252,7 @@ def swaplevel(self, i=-2, j=-1, axis=0):
52525252

52535253
def reorder_levels(self, order, axis=0):
52545254
"""
5255-
Rearrange index levels using input order. May not drop or
5256-
duplicate levels.
5255+
Rearrange index levels using input order. May not drop or duplicate levels.
52575256
52585257
Parameters
52595258
----------
@@ -5855,9 +5854,10 @@ def pivot(self, index=None, columns=None, values=None):
58555854
_shared_docs[
58565855
"pivot_table"
58575856
] = """
5858-
Create a spreadsheet-style pivot table as a DataFrame. The levels in
5859-
the pivot table will be stored in MultiIndex objects (hierarchical
5860-
indexes) on the index and columns of the result DataFrame.
5857+
Create a spreadsheet-style pivot table as a DataFrame.
5858+
5859+
The levels in the pivot table will be stored in MultiIndex objects
5860+
(hierarchical indexes) on the index and columns of the result DataFrame.
58615861
58625862
Parameters
58635863
----------%s
@@ -6250,8 +6250,9 @@ def explode(self, column: Union[str, Tuple]) -> "DataFrame":
62506250

62516251
def unstack(self, level=-1, fill_value=None):
62526252
"""
6253-
Pivot a level of the (necessarily hierarchical) index labels, returning
6254-
a DataFrame having a new level of column labels whose inner-most level
6253+
Pivot a level of the (necessarily hierarchical) index labels.
6254+
6255+
Returns a DataFrame having a new level of column labels whose inner-most level
62556256
consists of the pivoted index labels.
62566257
62576258
If the index is not a MultiIndex, the output will be a Series
@@ -6313,8 +6314,7 @@ def unstack(self, level=-1, fill_value=None):
63136314
_shared_docs[
63146315
"melt"
63156316
] = """
6316-
Unpivot a DataFrame from wide format to long format, optionally
6317-
leaving identifier variables set.
6317+
Unpivot a DataFrame from wide to long format, optionally leaving identifiers set.
63186318
63196319
This function is useful to massage a DataFrame into a format where one
63206320
or more columns are identifier variables (`id_vars`), while all other
@@ -7910,6 +7910,7 @@ def nunique(self, axis=0, dropna=True):
79107910
def idxmin(self, axis=0, skipna=True):
79117911
"""
79127912
Return index of first occurrence of minimum over requested axis.
7913+
79137914
NA/null values are excluded.
79147915
79157916
Parameters
@@ -7947,6 +7948,7 @@ def idxmin(self, axis=0, skipna=True):
79477948
def idxmax(self, axis=0, skipna=True):
79487949
"""
79497950
Return index of first occurrence of maximum over requested axis.
7951+
79507952
NA/null values are excluded.
79517953
79527954
Parameters

pandas/core/generic.py

+6-8
Original file line numberDiff line numberDiff line change
@@ -4353,8 +4353,9 @@ def sort_index(
43534353

43544354
def reindex(self, *args, **kwargs):
43554355
"""
4356-
Conform %(klass)s to new index with optional filling logic, placing
4357-
NA/NaN in locations having no value in the previous index. A new object
4356+
Conform %(klass)s to new index with optional filling logic.
4357+
4358+
Places NA/NaN in locations having no value in the previous index. A new object
43584359
is produced unless the new index is equivalent to the current one and
43594360
``copy=False``.
43604361
@@ -4669,8 +4670,7 @@ def _reindex_with_indexers(
46694670

46704671
def filter(self, items=None, like=None, regex=None, axis=None):
46714672
"""
4672-
Subset rows or columns of dataframe according to labels in
4673-
the specified index.
4673+
Subset the dataframe rows or columns according to the specified index labels.
46744674
46754675
Note that this routine does not filter a dataframe on its
46764676
contents. The filter is applied to the labels of the index.
@@ -8497,8 +8497,7 @@ def resample(
84978497

84988498
def first(self, offset):
84998499
"""
8500-
Convenience method for subsetting initial periods of time series data
8501-
based on a date offset.
8500+
Method to subset initial periods of time series data based on a date offset.
85028501
85038502
Parameters
85048503
----------
@@ -8560,8 +8559,7 @@ def first(self, offset):
85608559

85618560
def last(self, offset):
85628561
"""
8563-
Convenience method for subsetting final periods of time series data
8564-
based on a date offset.
8562+
Method to subset final periods of time series data based on a date offset.
85658563
85668564
Parameters
85678565
----------

0 commit comments

Comments
 (0)