How to compute a histogram on multiple related columns in a Data frame?

ipython

#1

I have created a Data frame in Ipython notebook .

data = DataFrame({'Qu1': [1, 3, 4, 3, 4],
.....: 'Qu2': [2, 3, 1, 2, 3],
.....: 'Qu3': [1, 5, 2, 4, 4]})

data
   Qu1 Qu2 Qu3
0    1  2  1
1    3  3  5
2    4  1  2
3    3  2  4
4    4  3  4

I want to know the frequency of each number in each column


#2

@sid100158,

Use dataframe.hist() to display histogram for all features, look at the below codes.

import pandas as pd
import matplotlib.pyplot as plt
data = pd.DataFrame({'Qu1': [1, 3, 4, 3, 4],'Qu2': [2, 3, 1, 2, 3],'Qu3': [1, 5, 2, 4, 4]})
data.hist() #create histogram for each columns
plt.show()

Regards,
Sunil