USA 20.49 33 CHN 13.40 141

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Country
GDP Population
USA 20.49
332.3
1
CHN 13.40
1412.3
2
JPN
4.97
125.4
DEU
4.00
83.1
4
GBR
2.83
67.5
FRA
2.78
67.0
IND
2.72
1393.0
ITA
2.07
59.0
BRA
1.87
212.8
9
CAN
1.71
37.0
3.
Transcribed Image Text:Country GDP Population USA 20.49 332.3 1 CHN 13.40 1412.3 2 JPN 4.97 125.4 DEU 4.00 83.1 4 GBR 2.83 67.5 FRA 2.78 67.0 IND 2.72 1393.0 ITA 2.07 59.0 BRA 1.87 212.8 9 CAN 1.71 37.0 3.
• Use Python to complete the following:
1. Create a dataframe from a dictionary with a list of values with the following 3 columns: 'Country, 'GDP, and 'Population. Use the ISO 3
character code for the Country values; use GDP (Gross Domestic Product) by 2021 in Trillions of dollars e.g. the GDP for the US by 2021 is
about 20.49 Trillion dollars; and the Population in millions of people e.g. the Population for the US by 2021 is about 331.0 million. Use the top
10 countries in GĐP by 2021.
2. Append a column to the dataframe and name the column: Country Name. Use the full country name for the values.
3. Calculate the GDP per person for each country and append the values in the column: GDP Per Capita'. The unit of measure for the GPD per
person should be in dollars per person so make sure that you scale appropriately.
4. Select a slice of the dataframe with the first 5 rows
5. Sort the datatrame by the 'GDP Per Person' in descending order
Transcribed Image Text:• Use Python to complete the following: 1. Create a dataframe from a dictionary with a list of values with the following 3 columns: 'Country, 'GDP, and 'Population. Use the ISO 3 character code for the Country values; use GDP (Gross Domestic Product) by 2021 in Trillions of dollars e.g. the GDP for the US by 2021 is about 20.49 Trillion dollars; and the Population in millions of people e.g. the Population for the US by 2021 is about 331.0 million. Use the top 10 countries in GĐP by 2021. 2. Append a column to the dataframe and name the column: Country Name. Use the full country name for the values. 3. Calculate the GDP per person for each country and append the values in the column: GDP Per Capita'. The unit of measure for the GPD per person should be in dollars per person so make sure that you scale appropriately. 4. Select a slice of the dataframe with the first 5 rows 5. Sort the datatrame by the 'GDP Per Person' in descending order
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY