Answers for "plot histogram in pandas"

1

pandas plot histogram

ax = df.plot.hist(bins=12, alpha=0.5)
Posted by: Guest on May-24-2021
2

plot histogram in seaborn

sns.distplot(gapminder['lifeExp'], kde=False, color='red', bins=100)
plt.title('Life Expectancy', fontsize=18)
plt.xlabel('Life Exp (years)', fontsize=16)
plt.ylabel('Frequency', fontsize=16)
Posted by: Guest on May-30-2020

Python Answers by Framework

Browse Popular Code Answers by Language