Python filter larger text by quantile
Python filter larger text by quantile Question: Assume I am process a very large text file, I have the following pseudocode xx_valueList = [] lines=[] with line in file: xx_value = calc_xxValue(line) xx_valueList.append(xx_value) lines.append(lines) # get_quantile_value is a function return the cutoff value with a specific quantile precent cut_offvalue = get_quantile_value(xx_valueList, precent=0.05) for line in …