Vertical line in histogram

PHOTO EMBED

Mon Mar 07 2022 15:08:30 GMT+0000 (UTC)

Saved by @abhin__dev

np.log1p(df['population']).plot.hist(bins=30)
plt.axvline(np.log1p(df['population']).mean(),c='C1')
plt.axvline(np.log1p(df['population']).median(),c='C1',linestyle='--')
plt.axvline(np.log1p(df['population']).quantile(0.25),c='C2',linestyle=':')
plt.axvline(np.log1p(df['population']).quantile(0.75),c='C2',linestyle=':')
content_copyCOPY

http://localhost:8888/notebooks/Python/Untitled.ipynb