#NEWLINE# def print_attribute( name , tp , data ) : #NEWLINE# #INDENT# type = tp [ 0 ] #NEWLINE# if ( ( type == 'numeric' ) or ( type == 'real' ) or ( type == 'integer' ) ) : #NEWLINE# #INDENT# ( min , max , mean , std ) = basic_stats ( data ) #NEWLINE# print ( ( '%s,%s,%f,%f,%f,%f' % ( name , type , min , max , mean , std ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# msg = ( name + ',{' ) #NEWLINE# for i in range ( ( len ( tp [ 1 ] ) - 1 ) ) : #NEWLINE# #INDENT# msg += ( tp [ 1 ] [ i ] + ',' ) #NEWLINE# #UNINDENT# msg += tp [ 1 ] [ ( - 1 ) ] #NEWLINE# msg += '}' #NEWLINE# print ( msg )