#NEWLINE# def normalize_ratios( ratios ) : #NEWLINE# #INDENT# normalized = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( i , v ) in enumerate ( zip ( * ratios . values ( ) ) ) : #NEWLINE# #INDENT# arr = np . array ( v ) #NEWLINE# normalized [ i ] = ( v / float ( np . nanmax ( arr ) ) ) #NEWLINE# #UNINDENT# return normalized