Getting the Data and Visualizing Datasets Using Scatter Plots
Explore how to obtain and clean GDP and economic freedom datasets, merge them using Python and Pandas, and create scatter plots to visualize the relationship between economic freedom scores and GDP per capita. Understand data cleaning challenges and improve plot clarity to identify trends and outliers.
We'll cover the following...
We'll cover the following...
Get the data
You can get up-to-date GDP data by country from many sources. We’ll want our data broken down to the per capita level because that’s the best way to get valuable apples-to-apples comparisons between countries of different sizes.
Running GDP shows us that the GDP data set has 248 rows
that include plenty of ...