#NEWLINE# def _upsample( self , method , limit = None ) : #NEWLINE# #INDENT# "\n        method : string {'backfill', 'bfill', 'pad',\n            'ffill', 'asfreq'} method for upsampling\n        limit : int, default None\n            Maximum size gap to fill when reindexing\n\n        See also\n        --------\n        .fillna\n\n        " #NEWLINE# self . _set_binner ( ) #NEWLINE# if self . axis : #NEWLINE# #INDENT# raise AssertionError ( 'axis must be 0' ) #NEWLINE# #UNINDENT# ax = self . ax #NEWLINE# obj = self . _selected_obj #NEWLINE# binner = self . binner #NEWLINE# res_index = self . _adjust_binner_for_upsample ( limit ) #NEWLINE# if ( ( limit is None ) and ( to_offset ( ax . inferred_freq ) == self . freq ) ) : #NEWLINE# #INDENT# result = obj . copy ( ) #NEWLINE# result . index = res_index #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# result = obj . reindex ( res_index , method = method , limit = limit ) #NEWLINE# #UNINDENT# return self . _wrap_result ( result )