I have a dataframe X with 30 variables, v1, v2 ... v30
and
col_name=[v1,v2.....v30]
For each variable, I want to plot the histogram to understand the variable distribution. However, it is too manual to write code to plot one by one, can I have something like a for loop to draw 30 histograms one under another at one go?
For example:
for i in range(30):
hist(np.array(X[col_name[i]]).astype(np.float),bins=100,color='blue',label=col_name[i],normed=1,alpha=0.5)
How can I do that? Like one page of graphs (each with title and label) so that I can scroll down to read.