我很好奇是否可以计算直方图中特定 bin 的元素数量,即 0-10 范围内的所有元素
你会怎么做?
例如 plt.hist(data, bins=[0, 10, 20, 30, 40, 50, 100]) 是否可以计算数据集中进入 bin 0-10 的所有元素
python matplotlib histogram
histogram ×1
matplotlib ×1
python ×1