Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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()

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...