@@ -315,17 +315,13 @@ def _data(self):
315
315
@property
316
316
def _AXIS_NUMBERS (self ) -> Dict [str , int ]:
317
317
""".. deprecated:: 1.1.0"""
318
- warnings .warn (
319
- "_AXIS_NUMBERS has been deprecated." , FutureWarning , stacklevel = 3 ,
320
- )
318
+ warnings .warn ("_AXIS_NUMBERS has been deprecated." , FutureWarning , stacklevel = 3 )
321
319
return {"index" : 0 }
322
320
323
321
@property
324
322
def _AXIS_NAMES (self ) -> Dict [int , str ]:
325
323
""".. deprecated:: 1.1.0"""
326
- warnings .warn (
327
- "_AXIS_NAMES has been deprecated." , FutureWarning , stacklevel = 3 ,
328
- )
324
+ warnings .warn ("_AXIS_NAMES has been deprecated." , FutureWarning , stacklevel = 3 )
329
325
return {0 : "index" }
330
326
331
327
def _construct_axes_dict (self , axes = None , ** kwargs ):
@@ -5128,7 +5124,7 @@ def pipe(self, func, *args, **kwargs):
5128
5124
... .pipe(g, arg1=a)
5129
5125
... .pipe((func, 'arg2'), arg1=a, arg3=c)
5130
5126
... ) # doctest: +SKIP
5131
- """
5127
+ """
5132
5128
return com .pipe (self , func , * args , ** kwargs )
5133
5129
5134
5130
_shared_docs ["aggregate" ] = dedent (
@@ -5630,7 +5626,7 @@ def astype(
5630
5626
5631
5627
else :
5632
5628
# else, only a single dtype is given
5633
- new_data = self ._mgr .astype (dtype = dtype , copy = copy , errors = errors , )
5629
+ new_data = self ._mgr .astype (dtype = dtype , copy = copy , errors = errors )
5634
5630
return self ._constructor (new_data ).__finalize__ (self , method = "astype" )
5635
5631
5636
5632
# GH 33113: handle empty frame or series
@@ -6520,7 +6516,7 @@ def replace(
6520
6516
3 b
6521
6517
4 b
6522
6518
dtype: object
6523
- """
6519
+ """
6524
6520
if not (
6525
6521
is_scalar (to_replace )
6526
6522
or is_re_compilable (to_replace )
@@ -7772,7 +7768,7 @@ def between_time(
7772
7768
raise TypeError ("Index must be DatetimeIndex" )
7773
7769
7774
7770
indexer = index .indexer_between_time (
7775
- start_time , end_time , include_start = include_start , include_end = include_end ,
7771
+ start_time , end_time , include_start = include_start , include_end = include_end
7776
7772
)
7777
7773
return self ._take_with_is_copy (indexer , axis = axis )
7778
7774
@@ -8939,7 +8935,7 @@ def _where(
8939
8935
8940
8936
self ._check_inplace_setting (other )
8941
8937
new_data = self ._mgr .putmask (
8942
- mask = cond , new = other , align = align , axis = block_axis ,
8938
+ mask = cond , new = other , align = align , axis = block_axis
8943
8939
)
8944
8940
result = self ._constructor (new_data )
8945
8941
return self ._update_inplace (result )
0 commit comments