In the context of Project based learning, the following question has to be solved-
What is the total population, total male population and total female population aged 10 to 24 in India?
Arrange the following solution to accomplish the same:
A. Read CSV file and check the shape of the DataFrame.
B. Identify the columns and the number of rows that you wants to use for plotting.
C. Create a new DataFrame containing the filtered data and Group data as per the requirement.
D. Plot data for the DataFrame.
In the context of Project based learning, the following question has to be solved-
What is the total population, total male population and total female population aged 10 to 24 in India?
Arrange the following solution to accomplish the same:
A. Read CSV file and check the shape of the DataFrame.
B. Identify the columns and the number of rows that you wants to use for plotting.
C. Create a new DataFrame containing the filtered data and Group data as per the requirement.
D. Plot data for the DataFrame.
Solution
A. Read the CSV file and check the shape of the DataFrame, to see how many rows and columns the data has.
B. Identify the columns and the number of rows needed for the plot, such as age group, male population and female population.
C. Create a new DataFrame with the filtered data (ages 10 to 24) and group it as required to get the total, male and female populations.
D. Plot the grouped data.
Options 2, 3 and 4: the data must be loaded before any columns can be chosen, and filtered and grouped before it can be plotted, so D can never come before C.
Related questions:
2026: 18 May Shift 2
2026: 18 May Shift 2