Numpy & Pandas: Return histogram values from pandas histogram plot?
<p>I know that I can plot histogram by pandas:</p>

<pre><code>df4 = pd.DataFrame({'a': np.random.randn(1000) + 1})
df4['a'].hist()
</code></pre>

<p><a href="https://i.stack.imgur.com/BCNM8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BCNM8.png" alt="enter image description here"></a></p>

<p>But how can I retrieve the histogram count from such a plot?</p>

<p>I know I can do it by (from <a href="https://stackoverflow.com/questions/13129618/histogram-values-of-a-pandas-series">Histogram values of a Pandas Series</a>)</p>

<pre><code>count,division = np.histogram(df4['a'])
</code></pre>

<p>But get the count value after <code>df.hist()</code> using this feels very redundent. Is it possible to get the frequency value directly from pandas? </p>