00:01
In this question, we have to create two bar plots that show the same number of individuals who have a high school diploma degree is one condition that is and the next condition that is given to us is they earn less than or equal to 50k or greater than 50k in us.
00:52
So we can use in this case a library in python which is called as matplotlib.
01:05
So this is a library in python.
01:16
We will use this in to code write the code for this in python.
01:24
So let us see how we will solve this question.
01:27
For that, i will move on to a basic compiler.
01:34
Now in this question, first thing we have to do is import the library that i told you about right now.
01:43
So on doing that, now we import the this library as plt.
01:51
Now this module provides a collection of functions to create various type of plots.
01:57
So now we have to input the data for bar plots that is this.
02:06
Now here we have to update with the actual counts that we have.
02:15
So we define the data for bar plots.
02:18
In this case, we have two categories that is less than or equal to 50 and greater than or equal to 50k.
02:25
These represent the earnings of individual with a high school graduate diploma in the united states.
02:32
The count list contains the corresponding counts of individuals for each category.
02:38
So we have to note that we replace 5, 8 with the actual counts that is there in the data set...