Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Data Science by (17.6k points)

I have a DataFrame with about 25 columns, several of which hold data unsuitable for plotting. DataFrame.hist() throws errors on those. How can I specify that those columns should be excluded from the plotting?

1 Answer

0 votes
by (41.4k points)

Select out the columns you want to plot:

df.ix[:, df.columns - to_exclude].hist()

Browse Categories