Output and writer please.
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...
Related questions
Question
Output and writer please.
![# Import the libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# Gather the data
st="""Country/Region
Lat Long
Afghanistan 33 65 4 4 5 6 8 11
Albania 41.1533 20.1683 5 13 23 34 56 104 178 240 315
Algeria 28.0339 1.6596 1 1 2 4 5 8 15 26 56
Andorra 42.5063 1.5218 23 34 56 78
103 204 336 584 789
Angola -11.2027 17.8739 7 12 23 53 89 142 203 310 420
Antigua and Barbuda 17.0608 -61.7964 0 0 1 1 1 2 3 58
Argentina -38.4161 -63.6167 58 103 205 359 498 630 1004 1597 2102
Armenia 40.0691 45.0382 23 29 38 57 89 108 204 307 405"""
st = st.strip().split('\n')
ans = []
for i in st:
t = i.strip().split('\t')
ans.append(t)
for i in range(1, len(ans)):
for j in range (1, len(ans[i])):
ans[i][j] = float(ans[i][j])
# Plotting
=
date ans[0][3:]
plt.figure(figsize=(10,7))
for i in range(1, len(ans));
t = ans[i]
s = sum(list(t[3:]))
if s>=25.0:
4/1/2020 4/2/2020 4/3/2020 4/4/2020 4/5/2020 4/6/2020 4/7/2020 4/8/2020 4/9/2020
14 17 19
plt.plot(t[3:], label = 'Country: '+ans[i][0])
plt.xlabel('Date')
plt.xticks(np.arange (len (date)),date)
plt.ylabel('Death count')
plt.legend()
plt.show()](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F1b800212-e19b-4278-ac7d-42b00e6385d6%2F54938cf5-4f25-40b8-9c10-f2d99c289744%2F2wkxgxo_processed.png&w=3840&q=75)
Transcribed Image Text:# Import the libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# Gather the data
st="""Country/Region
Lat Long
Afghanistan 33 65 4 4 5 6 8 11
Albania 41.1533 20.1683 5 13 23 34 56 104 178 240 315
Algeria 28.0339 1.6596 1 1 2 4 5 8 15 26 56
Andorra 42.5063 1.5218 23 34 56 78
103 204 336 584 789
Angola -11.2027 17.8739 7 12 23 53 89 142 203 310 420
Antigua and Barbuda 17.0608 -61.7964 0 0 1 1 1 2 3 58
Argentina -38.4161 -63.6167 58 103 205 359 498 630 1004 1597 2102
Armenia 40.0691 45.0382 23 29 38 57 89 108 204 307 405"""
st = st.strip().split('\n')
ans = []
for i in st:
t = i.strip().split('\t')
ans.append(t)
for i in range(1, len(ans)):
for j in range (1, len(ans[i])):
ans[i][j] = float(ans[i][j])
# Plotting
=
date ans[0][3:]
plt.figure(figsize=(10,7))
for i in range(1, len(ans));
t = ans[i]
s = sum(list(t[3:]))
if s>=25.0:
4/1/2020 4/2/2020 4/3/2020 4/4/2020 4/5/2020 4/6/2020 4/7/2020 4/8/2020 4/9/2020
14 17 19
plt.plot(t[3:], label = 'Country: '+ans[i][0])
plt.xlabel('Date')
plt.xticks(np.arange (len (date)),date)
plt.ylabel('Death count')
plt.legend()
plt.show()
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images

Recommended textbooks for you

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY