@@ -2295,8 +2295,7 @@ def convert_objects(self, convert_dates=True, convert_numeric=False,
22952295 #----------------------------------------------------------------------
22962296 # Filling NA's
22972297
2298- def fillna (self , value = None , method = None , axis = None , inplace = False ,
2299- limit = None , downcast = None ):
2298+ _shared_docs ['fillna' ] = (
23002299 """
23012300 Fill NA/NaN values using the specified method
23022301
@@ -2311,9 +2310,7 @@ def fillna(self, value=None, method=None, axis=None, inplace=False,
23112310 values specifying which value to use for each index (for a Series) or
23122311 column (for a DataFrame). (values not in the dict/Series/DataFrame will not be
23132312 filled). This value cannot be a list.
2314- axis : {0, 1}, default 0
2315- * 0: fill column-by-column
2316- * 1: fill row-by-row
2313+ axis : %(axes_single_arg)s
23172314 inplace : boolean, default False
23182315 If True, fill in place. Note: this will modify any
23192316 other views on this object, (e.g. a no-copy slice for a column in a
@@ -2336,8 +2333,13 @@ def fillna(self, value=None, method=None, axis=None, inplace=False,
23362333
23372334 Returns
23382335 -------
2339- filled : same type as caller
2336+ filled : %(klass)s
23402337 """
2338+ )
2339+
2340+ @Appender (_shared_docs ['fillna' ] % _shared_doc_kwargs )
2341+ def fillna (self , value = None , method = None , axis = None , inplace = False ,
2342+ limit = None , downcast = None ):
23412343 if isinstance (value , (list , tuple )):
23422344 raise TypeError ('"value" parameter must be a scalar or dict, but '
23432345 'you passed a "{0}"' .format (type (value ).__name__ ))
0 commit comments