@@ -5252,8 +5252,7 @@ def swaplevel(self, i=-2, j=-1, axis=0):
5252
5252
5253
5253
def reorder_levels (self , order , axis = 0 ):
5254
5254
"""
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.
5257
5256
5258
5257
Parameters
5259
5258
----------
@@ -5855,9 +5854,10 @@ def pivot(self, index=None, columns=None, values=None):
5855
5854
_shared_docs [
5856
5855
"pivot_table"
5857
5856
] = """
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.
5861
5861
5862
5862
Parameters
5863
5863
----------%s
@@ -6250,8 +6250,9 @@ def explode(self, column: Union[str, Tuple]) -> "DataFrame":
6250
6250
6251
6251
def unstack (self , level = - 1 , fill_value = None ):
6252
6252
"""
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
6255
6256
consists of the pivoted index labels.
6256
6257
6257
6258
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):
6313
6314
_shared_docs [
6314
6315
"melt"
6315
6316
] = """
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.
6318
6318
6319
6319
This function is useful to massage a DataFrame into a format where one
6320
6320
or more columns are identifier variables (`id_vars`), while all other
@@ -7910,6 +7910,7 @@ def nunique(self, axis=0, dropna=True):
7910
7910
def idxmin (self , axis = 0 , skipna = True ):
7911
7911
"""
7912
7912
Return index of first occurrence of minimum over requested axis.
7913
+
7913
7914
NA/null values are excluded.
7914
7915
7915
7916
Parameters
@@ -7947,6 +7948,7 @@ def idxmin(self, axis=0, skipna=True):
7947
7948
def idxmax (self , axis = 0 , skipna = True ):
7948
7949
"""
7949
7950
Return index of first occurrence of maximum over requested axis.
7951
+
7950
7952
NA/null values are excluded.
7951
7953
7952
7954
Parameters
0 commit comments