@@ -449,9 +449,7 @@ def __init__(
449449 if isinstance (data , BlockManager ):
450450 if index is None and columns is None and dtype is None and copy is False :
451451 # GH#33357 fastpath
452- NDFrame .__init__ (
453- self , data ,
454- )
452+ NDFrame .__init__ (self , data )
455453 return
456454
457455 mgr = self ._init_mgr (
@@ -5747,7 +5745,7 @@ def nsmallest(self, n, columns, keep="first") -> DataFrame:
57475745 population GDP alpha-2
57485746 Tuvalu 11300 38 TV
57495747 Anguilla 11300 311 AI
5750- Iceland 337000 17036 IS
5748+ Iceland 337000 17036 IS
57515749
57525750 When using ``keep='last'``, ties are resolved in reverse order:
57535751
@@ -7142,7 +7140,7 @@ def unstack(self, level=-1, fill_value=None):
71427140
71437141 return unstack (self , level , fill_value )
71447142
7145- @Appender (_shared_docs ["melt" ] % dict (caller = "df.melt(" , other = "melt" , ))
7143+ @Appender (_shared_docs ["melt" ] % dict (caller = "df.melt(" , other = "melt" ))
71467144 def melt (
71477145 self ,
71487146 id_vars = None ,
@@ -8624,7 +8622,7 @@ def blk_func(values):
86248622 # After possibly _get_data and transposing, we are now in the
86258623 # simple case where we can use BlockManager.reduce
86268624 res = df ._mgr .reduce (blk_func )
8627- out = df ._constructor (res , ).iloc [0 ].rename (None )
8625+ out = df ._constructor (res ).iloc [0 ].rename (None )
86288626 if out_dtype is not None :
86298627 out = out .astype (out_dtype )
86308628 if axis == 0 and is_object_dtype (out .dtype ):
0 commit comments