@@ -2392,8 +2392,7 @@ def convert_objects(self, convert_dates=True, convert_numeric=False,
23922392 #----------------------------------------------------------------------
23932393 # Filling NA's
23942394
2395- def fillna (self , value = None , method = None , axis = None , inplace = False ,
2396- limit = None , downcast = None ):
2395+ _shared_docs ['fillna' ] = (
23972396 """
23982397 Fill NA/NaN values using the specified method
23992398
@@ -2408,9 +2407,7 @@ def fillna(self, value=None, method=None, axis=None, inplace=False,
24082407 values specifying which value to use for each index (for a Series) or
24092408 column (for a DataFrame). (values not in the dict/Series/DataFrame will not be
24102409 filled). This value cannot be a list.
2411- axis : {0, 1}, default 0
2412- * 0: fill column-by-column
2413- * 1: fill row-by-row
2410+ axis : %(axes_single_arg)s
24142411 inplace : boolean, default False
24152412 If True, fill in place. Note: this will modify any
24162413 other views on this object, (e.g. a no-copy slice for a column in a
@@ -2433,8 +2430,13 @@ def fillna(self, value=None, method=None, axis=None, inplace=False,
24332430
24342431 Returns
24352432 -------
2436- filled : same type as caller
2433+ filled : %(klass)s
24372434 """
2435+ )
2436+
2437+ @Appender (_shared_docs ['fillna' ] % _shared_doc_kwargs )
2438+ def fillna (self , value = None , method = None , axis = None , inplace = False ,
2439+ limit = None , downcast = None ):
24382440 if isinstance (value , (list , tuple )):
24392441 raise TypeError ('"value" parameter must be a scalar or dict, but '
24402442 'you passed a "{0}"' .format (type (value ).__name__ ))
0 commit comments