Solution: Visualizing Datasets
Let's solve the challenge to check your understanding of visualizing datasets.
We'll cover the following...
We'll cover the following...
Here’s the solution to the problem that creates a bar chart and scatterplot after creating the desired subsets and dropping the NULL values.
Solution
Explanation
-
Lines 8–9: We create a
ginivariable and set it to'GINI index (World Bank estimate)', and we create ayearvariable and set it to2016. -
Lines 11–12: We create subset
dffrom thepovertyDataFrame by sorting based on theginivariable and dropping theNULLvalues aftersort. ...