parameters: (
          self,
          value: object | ArrayLike | None = None,
          method: FillnaOptions | None = None,
          limit: int | None = None,
      )
return_statement: return new_values
docstring: Fill NA/NaN values using the specified method.
  
          Parameters
          ----------
          value : scalar, array-like
              If a scalar value is passed it is used to fill all missing values.
              Alternatively, an array-like 'value' can be given. It's expected
              that the array-like have the same length as 'self'.
          method : {'backfill', 'bfill', 'pad', 'ffill', None}, default None
              Method to use for filling holes in reindexed Series
              pad / ffill: propagate last valid observation forward to next valid
              backfill / bfill: use NEXT valid observation to fill gap.
          limit : int, default None
              If method is specified, this is the maximum number of consecutive
              NaN values to forward/backward fill. In other words, if there is
              a gap with more than this number of consecutive NaNs, it will only
              be partially filled. If method is not specified, this is the
              maximum number of entries along the entire axis where NaNs will be
              filled.
  
          Returns
          -------
          ExtensionArray
              With NA/NaN filled.
docstring_summary: Fill NA/NaN values using the specified method.
docstring_tokens: Fill NA / NaN values using the specified method .
function: def fillna(
          self,
          value: object | ArrayLike | None = None,
          method: FillnaOptions | None = None,
          limit: int | None = None,
      ):
          """
          Fill NA/NaN values using the specified method.
  
          Parameters
          ----------
          value : scalar, array-like
              If a scalar value is passed it is used to fill all missing values.
              Alternatively, an array-like 'value' can be given. It's expected
              that the array-like have the same length as 'self'.
          method : {'backfill', 'bfill', 'pad', 'ffill', None}, default None
              Method to use for filling holes in reindexed Series
              pad / ffill: propagate last valid observation forward to next valid
              backfill / bfill: use NEXT valid observation to fill gap.
          limit : int, default None
              If method is specified, this is the maximum number of consecutive
              NaN values to forward/backward fill. In other words, if there is
              a gap with more than this number of consecutive NaNs, it will only
              be partially filled. If method is not specified, this is the
              maximum number of entries along the entire axis where NaNs will be
              filled.
  
          Returns
          -------
          ExtensionArray
              With NA/NaN filled.
          """
          value, method = validate_fillna_kwargs(value, method)
  
          mask = self.isna()
          # error: Argument 2 to "check_value_size" has incompatible type
          # "ExtensionArray"; expected "ndarray"
          value = missing.check_value_size(
              value, mask, len(self)  # type: ignore[arg-type]
          )
  
          if mask.any():
              if method is not None:
                  func = missing.get_fill_func(method)
                  new_values, _ = func(self.astype(object), limit=limit, mask=mask)
                  new_values = self._from_sequence(new_values, dtype=self.dtype)
              else:
                  # fill with value
                  new_values = self.copy()
                  new_values[mask] = value
          else:
              new_values = self.copy()
          return new_values
function_tokens: def fillna ( self , value : object | ArrayLike | None = None , method : FillnaOptions | None = None , limit : int | None = None , ) : value , method = validate_fillna_kwargs ( value , method ) mask = self . isna ( ) # error: Argument 2 to "check_value_size" has incompatible type # "ExtensionArray"; expected "ndarray" value = missing . check_value_size ( value , mask , len ( self ) # type: ignore[arg-type] ) if mask . any ( ) : if method is not None : func = missing . get_fill_func ( method ) new_values , _ = func ( self . astype ( object ) , limit = limit , mask = mask ) new_values = self . _from_sequence ( new_values , dtype = self . dtype ) else : # fill with value new_values = self . copy ( ) new_values [ mask ] = value else : new_values = self . copy ( ) return new_values