@@ -378,12 +378,6 @@ def diff(self, n: int) -> Self:
378
378
# only reached with self.ndim == 2
379
379
return self .apply ("diff" , n = n )
380
380
381
- def shift (self , periods : int , fill_value ) -> Self :
382
- if fill_value is lib .no_default :
383
- fill_value = None
384
-
385
- return self .apply ("shift" , periods = periods , fill_value = fill_value )
386
-
387
381
def astype (self , dtype , copy : bool | None = False , errors : str = "raise" ) -> Self :
388
382
if copy is None :
389
383
if using_copy_on_write ():
@@ -1463,7 +1457,6 @@ def quantile(
1463
1457
self ,
1464
1458
* ,
1465
1459
qs : Index , # with dtype float 64
1466
- axis : AxisInt = 0 ,
1467
1460
interpolation : QuantileInterpolation = "linear" ,
1468
1461
) -> Self :
1469
1462
"""
@@ -1473,9 +1466,6 @@ def quantile(
1473
1466
1474
1467
Parameters
1475
1468
----------
1476
- axis: reduction axis, default 0
1477
- consolidate: bool, default True. Join together blocks having same
1478
- dtype
1479
1469
interpolation : type of interpolation, default 'linear'
1480
1470
qs : list of the quantiles to be computed
1481
1471
@@ -1487,14 +1477,12 @@ def quantile(
1487
1477
# simplify some of the code here and in the blocks
1488
1478
assert self .ndim >= 2
1489
1479
assert is_list_like (qs ) # caller is responsible for this
1490
- assert axis == 1 # only ever called this way
1491
1480
1492
1481
new_axes = list (self .axes )
1493
1482
new_axes [1 ] = Index (qs , dtype = np .float64 )
1494
1483
1495
1484
blocks = [
1496
- blk .quantile (axis = axis , qs = qs , interpolation = interpolation )
1497
- for blk in self .blocks
1485
+ blk .quantile (qs = qs , interpolation = interpolation ) for blk in self .blocks
1498
1486
]
1499
1487
1500
1488
return type (self )(blocks , new_axes )
0 commit comments