#NEWLINE# def reindex_axis( self , labels , axis = 0 , **kwargs ) : #NEWLINE# #INDENT# ' for compatibility with higher dims ' #NEWLINE# if ( kwargs != 0 ) : #NEWLINE# #INDENT# raise ValueError ( 'cannot reindex series on non-zero axis!' ) #NEWLINE# #UNINDENT# return self . reindex ( index = labels , ** kwargs )