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 2: Extract data for the United States and work on the United States only
2.1 From data, keep only the data that belongs to the United States, and save it to a new dataframe data_US
Hint: Use the conditional statement
data['country']== 'United States'
to extract from data
[14]
0s
2.2 What is the largest inflation number for the United States since 1950?
[]
2.3 What is the year when that largest inflation for the United States occured?
[]
2.4 How many years does the United States see more than 5% inflation since 1950?
[]
Start coding or generate with AI.
2.5 Find that years where 'inflation' is greater than 'gdpgrowth'
[]
Start coding or generate with AI.
Part 3: Work with the complete world data
3.1 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.
3.2 Find the maximum inflation number for each country
[]
Start coding or generate with AI.
3.3 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!