python使用matplotlib.pyplot画直方图时报错如下: max must be larger than min in range parameter 原因是数据中带有缺失值,请使用dropna()进行缺失值删除即可