parameters: (self, method, limit=None, fill_value=None)
return_statement: return self._wrap_result(
              _take_new_index(obj, indexer, new_index, axis=self.axis)
          )
docstring: Parameters
          ----------
          method : string {'backfill', 'bfill', 'pad', 'ffill'}
              Method for upsampling.
          limit : int, default None
              Maximum size gap to fill when reindexing.
          fill_value : scalar, default None
              Value to use for missing values.
  
          See Also
          --------
          .fillna
docstring_summary: Parameters
          ----------
          method : string {'backfill', 'bfill', 'pad', 'ffill'}
              Method for upsampling.
          limit : int, default None
              Maximum size gap to fill when reindexing.
          fill_value : scalar, default None
              Value to use for missing values.
docstring_tokens: Parameters ---------- method : string { backfill bfill pad ffill } Method for upsampling . limit : int default None Maximum size gap to fill when reindexing . fill_value : scalar default None Value to use for missing values .
function: def _upsample(self, method, limit=None, fill_value=None):
          """
          Parameters
          ----------
          method : string {'backfill', 'bfill', 'pad', 'ffill'}
              Method for upsampling.
          limit : int, default None
              Maximum size gap to fill when reindexing.
          fill_value : scalar, default None
              Value to use for missing values.
  
          See Also
          --------
          .fillna
  
          """
  
          # we may need to actually resample as if we are timestamps
          if self.kind == "timestamp":
              return super()._upsample(method, limit=limit, fill_value=fill_value)
  
          self._set_binner()
          ax = self.ax
          obj = self.obj
          new_index = self.binner
  
          # Start vs. end of period
          memb = ax.asfreq(self.freq, how=self.convention)
  
          # Get the fill indexer
          indexer = memb.get_indexer(new_index, method=method, limit=limit)
          return self._wrap_result(
              _take_new_index(obj, indexer, new_index, axis=self.axis)
          )
function_tokens: def _upsample ( self , method , limit = None , fill_value = None ) : # we may need to actually resample as if we are timestamps if self . kind == "timestamp" : return super ( ) . _upsample ( method , limit = limit , fill_value = fill_value ) self . _set_binner ( ) ax = self . ax obj = self . obj new_index = self . binner # Start vs. end of period memb = ax . asfreq ( self . freq , how = self . convention ) # Get the fill indexer indexer = memb . get_indexer ( new_index , method = method , limit = limit ) return self . _wrap_result ( _take_new_index ( obj , indexer , new_index , axis = self . axis ) )