Question: Part 2 : Extract data for the United States and work on the United States only 2 . 1 From data, keep only the data
Part : Extract data for the United States and work on the United States only
From data, keep only the data that belongs to the United States, and save it to a new dataframe dataUS
Hint: Use the conditional statement
datacountry 'United States'
to extract from data
s
What is the largest inflation number for the United States since
What is the year when that largest inflation for the United States occured?
How many years does the United States see more than inflation since
Start coding or generate with AI
Find that years where 'inflation' is greater than 'gdpgrowth'
Start coding or generate with AI
Part : Work with the complete world data
How many countries are there in data? List the countries and count the number of countries
Hint: Use functions unique and nunique
Start coding or generate with AI
Find the maximum inflation number for each country
Start coding or generate with AI
Compute the average inflation number by countries
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
