@@ -909,13 +909,7 @@ def setitem(self, indexer, value):
909
909
return block
910
910
911
911
def putmask (
912
- self ,
913
- mask ,
914
- new ,
915
- align : bool = True ,
916
- inplace : bool = False ,
917
- axis : int = 0 ,
918
- transpose : bool = False ,
912
+ self , mask , new , inplace : bool = False , axis : int = 0 , transpose : bool = False ,
919
913
):
920
914
"""
921
915
putmask the data to the block; it is possible that we may create a
@@ -927,7 +921,6 @@ def putmask(
927
921
----------
928
922
mask : the condition to respect
929
923
new : a ndarray/object
930
- align : boolean, perform alignment on other/cond, default is True
931
924
inplace : perform inplace modification, default is False
932
925
axis : int
933
926
transpose : boolean
@@ -1312,13 +1305,7 @@ def shift(self, periods, axis: int = 0, fill_value=None):
1312
1305
return [self .make_block (new_values )]
1313
1306
1314
1307
def where (
1315
- self ,
1316
- other ,
1317
- cond ,
1318
- align : bool = True ,
1319
- errors = "raise" ,
1320
- try_cast : bool = False ,
1321
- axis : int = 0 ,
1308
+ self , other , cond , errors = "raise" , try_cast : bool = False , axis : int = 0 ,
1322
1309
) -> List ["Block" ]:
1323
1310
"""
1324
1311
evaluate the block; return result block(s) from the result
@@ -1327,8 +1314,6 @@ def where(
1327
1314
----------
1328
1315
other : a ndarray/object
1329
1316
cond : the condition to respect
1330
- align : bool, default True
1331
- Perform alignment on other/cond.
1332
1317
errors : str, {'raise', 'ignore'}, default 'raise'
1333
1318
- ``raise`` : allow exceptions to be raised
1334
1319
- ``ignore`` : suppress exceptions. On error return original object
@@ -1394,12 +1379,7 @@ def where_func(cond, values, other):
1394
1379
# we are explicitly ignoring errors
1395
1380
block = self .coerce_to_target_dtype (other )
1396
1381
blocks = block .where (
1397
- orig_other ,
1398
- cond ,
1399
- align = align ,
1400
- errors = errors ,
1401
- try_cast = try_cast ,
1402
- axis = axis ,
1382
+ orig_other , cond , errors = errors , try_cast = try_cast , axis = axis ,
1403
1383
)
1404
1384
return self ._maybe_downcast (blocks , "infer" )
1405
1385
@@ -1646,7 +1626,7 @@ def set(self, locs, values):
1646
1626
self .values [:] = values
1647
1627
1648
1628
def putmask (
1649
- self , mask , new , align = True , inplace = False , axis = 0 , transpose = False ,
1629
+ self , mask , new , inplace = False , axis = 0 , transpose = False ,
1650
1630
):
1651
1631
"""
1652
1632
putmask the data to the block; we must be a single block and not
@@ -1658,7 +1638,6 @@ def putmask(
1658
1638
----------
1659
1639
mask : the condition to respect
1660
1640
new : a ndarray/object
1661
- align : boolean, perform alignment on other/cond, default is True
1662
1641
inplace : perform inplace modification, default is False
1663
1642
1664
1643
Returns
@@ -1896,13 +1875,7 @@ def shift(
1896
1875
]
1897
1876
1898
1877
def where (
1899
- self ,
1900
- other ,
1901
- cond ,
1902
- align = True ,
1903
- errors = "raise" ,
1904
- try_cast : bool = False ,
1905
- axis : int = 0 ,
1878
+ self , other , cond , errors = "raise" , try_cast : bool = False , axis : int = 0 ,
1906
1879
) -> List ["Block" ]:
1907
1880
if isinstance (other , ABCDataFrame ):
1908
1881
# ExtensionArrays are 1-D, so if we get here then
0 commit comments