@@ -449,9 +449,7 @@ def __init__(
449
449
if isinstance (data , BlockManager ):
450
450
if index is None and columns is None and dtype is None and copy is False :
451
451
# GH#33357 fastpath
452
- NDFrame .__init__ (
453
- self , data ,
454
- )
452
+ NDFrame .__init__ (self , data )
455
453
return
456
454
457
455
mgr = self ._init_mgr (
@@ -5747,7 +5745,7 @@ def nsmallest(self, n, columns, keep="first") -> DataFrame:
5747
5745
population GDP alpha-2
5748
5746
Tuvalu 11300 38 TV
5749
5747
Anguilla 11300 311 AI
5750
- Iceland 337000 17036 IS
5748
+ Iceland 337000 17036 IS
5751
5749
5752
5750
When using ``keep='last'``, ties are resolved in reverse order:
5753
5751
@@ -7142,7 +7140,7 @@ def unstack(self, level=-1, fill_value=None):
7142
7140
7143
7141
return unstack (self , level , fill_value )
7144
7142
7145
- @Appender (_shared_docs ["melt" ] % dict (caller = "df.melt(" , other = "melt" , ))
7143
+ @Appender (_shared_docs ["melt" ] % dict (caller = "df.melt(" , other = "melt" ))
7146
7144
def melt (
7147
7145
self ,
7148
7146
id_vars = None ,
@@ -8624,7 +8622,7 @@ def blk_func(values):
8624
8622
# After possibly _get_data and transposing, we are now in the
8625
8623
# simple case where we can use BlockManager.reduce
8626
8624
res = df ._mgr .reduce (blk_func )
8627
- out = df ._constructor (res , ).iloc [0 ].rename (None )
8625
+ out = df ._constructor (res ).iloc [0 ].rename (None )
8628
8626
if out_dtype is not None :
8629
8627
out = out .astype (out_dtype )
8630
8628
if axis == 0 and is_object_dtype (out .dtype ):
0 commit comments