Homework #3 CIS 3120 HOMEWORK 3 APIs, Data frames 1. Select an API of your choice. Make at least 10 requests to this API with different querying values. For example, you could look up the weather...

1 answer below »
Instruction is attached


Homework #3 CIS 3120 HOMEWORK 3 APIs, Data frames 1. Select an API of your choice. Make at least 10 requests to this API with different querying values. For example, you could look up the weather information for 10 different cities or the stock price information for 10 different companies. On each request the API must return at least 5 pieces of information. E.g. if you are using a weather API, the API may return the max temperature, min temperature, rainfall amount, humidity, UV index for each city. Store the values returned for each request in a pandas data frame. That is, the data frame would have at least 5 columns (one for each category of data provided by the API) and at least 10 rows. Print the description statistics for the data frame. Export the data frame to a csv file. Submit your code, csv file, and a one page report explaining how your analysis would be helpful towards solving a related problem. For example, if you choose to use a weather API, you should comment about how the weather information obtained would be helpful to wedding planners, farmers, etc. Due: May 25th, 2021 11:59 PM
Answered 15 days AfterMay 13, 2021

Answer To: Homework #3 CIS 3120 HOMEWORK 3 APIs, Data frames 1. Select an API of your choice. Make at least 10...

Rushendra answered on May 17 2021
133 Votes
weather/weather-analysis.docx
Weather Analysis
The program generates random latitude and longitude and gets 10 cities
Th
en it request openweather api and gets weather report of 10 cities
They are stored in pandas frame
They are exported to weather.csv file
Analysis of pandas frame is displayed
Applications
We can specify 10 particular geographically closer cities and perform the same analysis
With this we can predict the temperature in the region
With this we can predict the rainfall in the region
With this we can predict the cyclone in the region
We can signal warning for cyclone for farmers and fisherman at the regions
Future Work
Similar data can be used to plat temperature graph
Similar data can be used to plat rainfall graph
Similar data can be used to plat weather graph
weather/weather.csv
City,Cloudiness,Country,Date,Humidity,Lat,Lng,Max Temp,Wind Speed
Tasiilaq,9,GL,1621228862,68,65.6145,-37.6368,26.6,3.44
East London,0,ZA,1621228862,71,-33.0153,27.9116,51.8,8.05
Kodinsk,43,RU,1621228862,24,58.6881,99.1844,46.17,8.46
Young,0,UY,1621228862,89,-32.6833,-57.6333,50.0,1.99
Bilma,0,NE,1621228863,13,18.6853,12.9164,85.12,12.17
Berlevåg,100,NO,1621228863,97,70.8578,29.0864,36.82,14.99
George...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here