Reputation: 31
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.
Upvotes: 2
Views: 4071
Reputation: 508
df = pd.DataFrame(np.random.randint(5, size=(3, 4)), columns=['col_' + str(i) for i in range(4)])
df
df.stack().plot.hist()
Upvotes: 4