DataFrame.
hist
Make a histogram of the DataFrame’s.
See pandas.DataFrame.hist for usage.
Notes
Derived from pandas.plotting._core.hist_frame 0.25.3
pandas.plotting._core.hist_frame 0.25.3
Ideally, we’d call the pandas method hist_frame directly with histogram data, but weights are applied to ALL series. For example, we can plot a histogram of pre-binned data via:
counts, bins = np.histogram(data) plt.hist(bins[:-1], bins, weights=counts)
However,
ax.hist(data[col].dropna().values, bins=bins, **kwds)
is for [col] and weights are a single array.
[col]
Examples
>>> df = ed.DataFrame('localhost', 'flights') >>> hist = df.select_dtypes(include=[np.number]).hist(figsize=[10,10]) # doctest: +SKIP