def volume_code(volume):
 ind = np.searchsorted([100000.0, 1000000.0, 5000000.0, 10000000.0, 10000000.0], volume)
 return ind

def volume_code ( volume ) : ind = np . searchsorted ( [ 100000.0 , 1000000.0 , 5000000.0 , 10000000.0 , 10000000.0 ] , volume ) return ind
code the continuous volume data categorically .