Plot histogram of all values in dataFrame

Viewed 2002

Is there a way to plot all the values of a dataframe without seperating them into different colors by column? I want to see the distribution of all values in the dataframe regardless of column. However dataframe.plot.hist() overlays all the column histograms onto of each other.

1 Answers
df = pd.DataFrame(np.random.randint(5, size=(3, 4)), columns=['col_' + str(i) for i in range(4)])
df

dataframe

df.stack().plot.hist()

hist

Related