Download the dataset and write a Python program to analyze it to answer the following questions: 01. What is the year an

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Download the dataset and write a Python program to analyze it to answer the following questions: 01. What is the year an

Post by answerhappygod »

Download The Dataset And Write A Python Program To Analyze It To Answer The Following Questions 01 What Is The Year An 1
Download The Dataset And Write A Python Program To Analyze It To Answer The Following Questions 01 What Is The Year An 1 (49.8 KiB) Viewed 39 times
Link tothe dataset: life-expectancy.xlsx
https://onedrive.live.com/view.aspx?res ... SM5Ac2-YkA
Your help is highly appreciated.
Download the dataset and write a Python program to analyze it to answer the following questions: 01. What is the year and country that has the lowest life expectancy in the dataset? 02. What is the year and country that has the highest life expectancy in the dataset? 03. Allow the user to type in a year, then, find the average life expectancy for that year. Then find the country with the minimum and the one with the maximum life expectancies for that year. A sample run could look as follows: Enter the year of interest: 1959 The overall max life expectancy is: 86.751 from Monaco in 2019 The overall min life expectancy is: 17.76 from Iceland in 1882 For the year 1959: The average life expectancy across all countries was 54.95 The max life expectancy was in Norway with 73.49 The min life expectancy was in Mali with 28.077
01. Download the dataset 02. Load the dataset in your Python program 03. Iterate through the data line by line 04. Split each line into parts 05. Find the lowest value for life expectancy and the highest value for life expectancy in the dataset. (Note that at this point, you just need the value for this, not the year and the country for that value.)
>> Identify the year and country that has the largest drop from one year to the next. >> Allow the user to type in a country, then show the minimum, maximum, and average life expectancy for that country. » Look for interesting anomalies or patterns in the data.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply