@@ -315,17 +315,13 @@ def _data(self):
315315 @property
316316 def _AXIS_NUMBERS (self ) -> Dict [str , int ]:
317317 """.. 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 )
321319 return {"index" : 0 }
322320
323321 @property
324322 def _AXIS_NAMES (self ) -> Dict [int , str ]:
325323 """.. 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 )
329325 return {0 : "index" }
330326
331327 def _construct_axes_dict (self , axes = None , ** kwargs ):
@@ -5128,7 +5124,7 @@ def pipe(self, func, *args, **kwargs):
51285124 ... .pipe(g, arg1=a)
51295125 ... .pipe((func, 'arg2'), arg1=a, arg3=c)
51305126 ... ) # doctest: +SKIP
5131- """
5127+ """
51325128 return com .pipe (self , func , * args , ** kwargs )
51335129
51345130 _shared_docs ["aggregate" ] = dedent (
@@ -5630,7 +5626,7 @@ def astype(
56305626
56315627 else :
56325628 # 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 )
56345630 return self ._constructor (new_data ).__finalize__ (self , method = "astype" )
56355631
56365632 # GH 33113: handle empty frame or series
@@ -6520,7 +6516,7 @@ def replace(
65206516 3 b
65216517 4 b
65226518 dtype: object
6523- """
6519+ """
65246520 if not (
65256521 is_scalar (to_replace )
65266522 or is_re_compilable (to_replace )
@@ -7772,7 +7768,7 @@ def between_time(
77727768 raise TypeError ("Index must be DatetimeIndex" )
77737769
77747770 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
77767772 )
77777773 return self ._take_with_is_copy (indexer , axis = axis )
77787774
@@ -8939,7 +8935,7 @@ def _where(
89398935
89408936 self ._check_inplace_setting (other )
89418937 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
89438939 )
89448940 result = self ._constructor (new_data )
89458941 return self ._update_inplace (result )
0 commit comments