#NEWLINE# @ property #NEWLINE# def max_row( self ) : #NEWLINE# #INDENT# 'Returns the maximum row index containing data\n\n        :rtype: int\n        ' #NEWLINE# max_row = 1 #NEWLINE# if self . _cells : #NEWLINE# #INDENT# rows = set ( ( c [ 0 ] for c in self . _cells ) ) #NEWLINE# max_row = max ( rows ) #NEWLINE# #UNINDENT# return self