Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left

  Apply Now

End-to-End ML Project- Beginner friendly

42 / 94

Histograms

Now, let's plot the histogram for numerical attributes of our dataset. We can do that by using the hist() method of the DataFrame object.

It has 2 important attributes-

  1. figsize- Size of the output figure.
  2. bins- Number of histogram bins to be used.

Its syntax is the same as other DataFrame methods we used before.

You can refer to hist() documentation for further details.

INSTRUCTIONS

Run the hist() method for our dataset. Specify it's parameters figsize as (15,10) and bins as 50.

Get Hint See Answer

Loading comments...