In the last couple of tutorials, we learned how to select various subsets of a DataFrame. In this tutorial, we will use these techniques to select a subset of the DataFrame and modify the selected data.
As in the previous tutorials, let's start by importing the libraries and loading the dataset.
A histogram graphically summarizes the distribution of numerical data. Typically, it consists of vertical rectangular bars which show the frequency of data (along y-axis) in successive class intervals (x-axis) of equal size. The height of each bar of a histogram is proportional to the frequency of the data.
Let’s take a sample data of heights (in cm) of 50 students in a class.