#NEWLINE# def _reindex_with_indexers( self , reindexers , method = None , fill_value = None , limit = None , copy = False , allow_dups = False ) : #NEWLINE# #INDENT# if ( ( method is not None ) or ( limit is not None ) ) : #NEWLINE# #INDENT# raise NotImplementedError ( 'cannot reindex with a method or limit with sparse' ) #NEWLINE# #UNINDENT# if ( fill_value is None ) : #NEWLINE# #INDENT# fill_value = np . nan #NEWLINE# #UNINDENT# ( index , row_indexer ) = reindexers . get ( 0 , ( None , None ) ) #NEWLINE# ( columns , col_indexer ) = reindexers . get ( 1 , ( None , None ) ) #NEWLINE# if ( columns is None ) : #NEWLINE# #INDENT# columns = index . columns #NEWLINE# #UNINDENT# new_arrays = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for col in columns : #NEWLINE# #INDENT# if ( col not in self ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( row_indexer is not None ) : #NEWLINE# #INDENT# new_arrays [ col ] = algos . take_1d ( self [ col ] . get_values ( ) , row_indexer , fill_value = fill_value ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# new_arrays [ col ] = self [ col ] #NEWLINE# #UNINDENT# #UNINDENT# return SparseDataFrame ( new_arrays , index = index , columns = columns ) . __finalize__ ( self )