import matplotlib.pyplot as plt housing.hist(bins=50, figsize=(20,15)) bins指bin(箱子)的个数,即每张图柱子的个数 figsize指每张图的尺寸大小