You can use numpy.apply_along_axis to eliminate the loop. hist, bin_edges = apply_along_axis(lambda x: histogram(x, bins=bins), 0, B).
確定! 回上一頁