#NEWLINE# def _upsample( self , method , limit = None ) : #NEWLINE# #INDENT# "\n        method : string {'backfill', 'bfill', 'pad', 'ffill'}\n            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# if ( self . kind == 'timestamp' ) : #NEWLINE# #INDENT# return super ( PeriodIndexResampler , self ) . _upsample ( method , limit = limit ) #NEWLINE# #UNINDENT# ax = method . ax #NEWLINE# obj = self . obj #NEWLINE# new_index = self . _get_new_index ( ) #NEWLINE# if ( len ( new_index ) == 0 ) : #NEWLINE# #INDENT# return self . _wrap_result ( self . _selected_obj . reindex ( new_index ) ) #NEWLINE# #UNINDENT# memb = ax . asfreq ( self . freq , how = self . convention ) #NEWLINE# indexer = memb . get_indexer ( new_index , method = method , limit = limit ) #NEWLINE# return self . _wrap_result ( _take_new_index ( obj , indexer , new_index , axis = self . axis ) )