Histograms In Pandas
Goal¶
This post aims to introduce how to create histogram plot using pandas
Libraries¶
In [3]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
Create data¶
In [4]:
df = pd.DataFrame(np.random.random(100))
df.head()
Out[4]:
Create Histogram¶
In [11]:
df.plot(kind='hist', bins=50);
Comments
Comments powered by Disqus