@@ -128,7 +128,7 @@ def _init_mgr(self, mgr, axes=None, dtype=None, copy=False):
128128        elif  dtype  is  not   None :
129129            # avoid copy if we can 
130130            if  len (mgr .blocks ) >  1  or  mgr .blocks [0 ].values .dtype  !=  dtype :
131-                 mgr  =  mgr .astype (dtype )
131+                 mgr  =  mgr .astype (dtype = dtype )
132132        return  mgr 
133133
134134    #---------------------------------------------------------------------- 
@@ -2011,7 +2011,7 @@ def astype(self, dtype, copy=True, raise_on_error=True):
20112011        """ 
20122012
20132013        mgr  =  self ._data .astype (
2014-             dtype , copy = copy , raise_on_error = raise_on_error )
2014+             dtype = dtype , copy = copy , raise_on_error = raise_on_error )
20152015        return  self ._constructor (mgr ).__finalize__ (self )
20162016
20172017    def  copy (self , deep = True ):
@@ -2153,7 +2153,7 @@ def fillna(self, value=None, method=None, axis=0, inplace=False,
21532153                    from  pandas  import  Series 
21542154                    value  =  Series (value )
21552155
2156-                 new_data  =  self ._data .fillna (value , inplace = inplace ,
2156+                 new_data  =  self ._data .fillna (value = value , inplace = inplace ,
21572157                                             downcast = downcast )
21582158
21592159            elif  isinstance (value , (dict , com .ABCSeries )):
@@ -2170,7 +2170,7 @@ def fillna(self, value=None, method=None, axis=0, inplace=False,
21702170                    obj .fillna (v , inplace = True )
21712171                return  result 
21722172            else :
2173-                 new_data  =  self ._data .fillna (value , inplace = inplace ,
2173+                 new_data  =  self ._data .fillna (value = value , inplace = inplace ,
21742174                                             downcast = downcast )
21752175
21762176        if  inplace :
@@ -2355,7 +2355,8 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None,
23552355                    new_data  =  self ._data 
23562356                    for  c , src  in  compat .iteritems (to_replace ):
23572357                        if  c  in  value  and  c  in  self :
2358-                             new_data  =  new_data .replace (src , value [c ],
2358+                             new_data  =  new_data .replace (to_replace = src ,
2359+                                                         value = value [c ],
23592360                                                        filter = [c ],
23602361                                                        inplace = inplace ,
23612362                                                        regex = regex )
@@ -2365,7 +2366,8 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None,
23652366                    new_data  =  self ._data 
23662367                    for  k , src  in  compat .iteritems (to_replace ):
23672368                        if  k  in  self :
2368-                             new_data  =  new_data .replace (src , value ,
2369+                             new_data  =  new_data .replace (to_replace = src ,
2370+                                                         value = value ,
23692371                                                        filter = [k ],
23702372                                                        inplace = inplace ,
23712373                                                        regex = regex )
@@ -2380,13 +2382,16 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None,
23802382                                         'in length. Expecting %d got %d '  % 
23812383                                         (len (to_replace ), len (value )))
23822384
2383-                     new_data  =  self ._data .replace_list (to_replace , value ,
2385+                     new_data  =  self ._data .replace_list (src_list = to_replace ,
2386+                                                        dest_list = value ,
23842387                                                       inplace = inplace ,
23852388                                                       regex = regex )
23862389
23872390                else :  # [NA, ''] -> 0 
2388-                     new_data  =  self ._data .replace (to_replace , value ,
2389-                                                   inplace = inplace , regex = regex )
2391+                     new_data  =  self ._data .replace (to_replace = to_replace ,
2392+                                                   value = value ,
2393+                                                   inplace = inplace ,
2394+                                                   regex = regex )
23902395            elif  to_replace  is  None :
23912396                if  not  (com .is_re_compilable (regex ) or 
23922397                        com .is_list_like (regex ) or 
@@ -2406,13 +2411,14 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None,
24062411
24072412                    for  k , v  in  compat .iteritems (value ):
24082413                        if  k  in  self :
2409-                             new_data  =  new_data .replace (to_replace , v ,
2414+                             new_data  =  new_data .replace (to_replace = to_replace ,
2415+                                                         value = v ,
24102416                                                        filter = [k ],
24112417                                                        inplace = inplace ,
24122418                                                        regex = regex )
24132419
24142420                elif  not  com .is_list_like (value ):  # NA -> 0 
2415-                     new_data  =  self ._data .replace (to_replace ,  value ,
2421+                     new_data  =  self ._data .replace (to_replace = to_replace ,  value = value ,
24162422                                                  inplace = inplace , regex = regex )
24172423                else :
24182424                    msg  =  ('Invalid "to_replace" type: ' 
@@ -3116,12 +3122,12 @@ def where(self, cond, other=np.nan, inplace=False, axis=None, level=None,
31163122        if  inplace :
31173123            # we may have different type blocks come out of putmask, so 
31183124            # reconstruct the block manager 
3119-             new_data  =  self ._data .putmask (cond , other , align = axis  is  None ,
3125+             new_data  =  self ._data .putmask (mask = cond , new = other , align = axis  is  None ,
31203126                                          inplace = True )
31213127            self ._update_inplace (new_data )
31223128
31233129        else :
3124-             new_data  =  self ._data .where (other ,  cond , align = axis  is  None ,
3130+             new_data  =  self ._data .where (other = other ,  cond = cond , align = axis  is  None ,
31253131                                        raise_on_error = raise_on_error ,
31263132                                        try_cast = try_cast )
31273133
@@ -3168,7 +3174,7 @@ def shift(self, periods=1, freq=None, axis=0, **kwds):
31683174        if  freq  is  None  and  not  len (kwds ):
31693175            block_axis  =  self ._get_block_manager_axis (axis )
31703176            indexer  =  com ._shift_indexer (len (self ), periods )
3171-             new_data  =  self ._data .shift (indexer ,  periods , axis = block_axis )
3177+             new_data  =  self ._data .shift (indexer = indexer ,  periods = periods , axis = block_axis )
31723178        else :
31733179            return  self .tshift (periods , freq , ** kwds )
31743180
0 commit comments