{"id":61431,"date":"2022-05-15T23:52:15","date_gmt":"2022-05-15T23:52:15","guid":{"rendered":"https:\/\/assignmenttutors.net\/blog\/python-api-weather-py\/"},"modified":"2022-05-15T23:52:15","modified_gmt":"2022-05-15T23:52:15","slug":"python-api-weather-py","status":"publish","type":"post","link":"https:\/\/assignmenttutors.net\/blog\/python-api-weather-py\/","title":{"rendered":"Python api &#8211; weather py"},"content":{"rendered":"<div>\n<p>In this example, you&#8217;ll be creating a Python script to visualize the weather of 500+ cities across the world of varying distance from the equator. To accomplish this, you&#8217;ll be utilizing a <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/pypi.python.org\/pypi\/citipy\">simple Python library<\/a>, the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/openweathermap.org\/api\">OpenWeatherMap API<\/a>, and a little common sense to create a representative model of weather across world cities.<\/p>\n<p>Your first requirement is to create a series of scatter plots to showcase the following relationships:<\/p>\n<ul>\n<li>Temperature (F) vs. Latitude<\/li>\n<li>Humidity (%) vs. Latitude<\/li>\n<li>Cloudiness (%) vs. Latitude<\/li>\n<li>Wind Speed (mph) vs. Latitude<\/li>\n<\/ul>\n<p>After each plot add a sentence or too explaining what the code is and analyzing.<\/p>\n<p>Your second requirement is to run linear regression on each relationship, only this time separating them into Northern Hemisphere (greater than or equal to 0 degrees latitude) and Southern Hemisphere (less than 0 degrees latitude):<\/p>\n<ul>\n<li>Northern Hemisphere &#8211; Temperature (F) vs. Latitude<\/li>\n<li>Southern Hemisphere &#8211; Temperature (F) vs. Latitude<\/li>\n<li>Northern Hemisphere &#8211; Humidity (%) vs. Latitude<\/li>\n<li>Southern Hemisphere &#8211; Humidity (%) vs. Latitude<\/li>\n<li>Northern Hemisphere &#8211; Cloudiness (%) vs. Latitude<\/li>\n<li>Southern Hemisphere &#8211; Cloudiness (%) vs. Latitude<\/li>\n<li>Northern Hemisphere &#8211; Wind Speed (mph) vs. Latitude<\/li>\n<li>Southern Hemisphere &#8211; Wind Speed (mph) vs. Latitude<\/li>\n<\/ul>\n<p>After each pair of plots explain what the linear regression is modeling such as any relationships you notice and any other analysis you may have.<\/p>\n<p><strong>Optional<\/strong> You will be creating multiple linear regression plots. To optimize your code, write a function that creates the linear regression plots.<\/p>\n<p>Your final notebook must:<\/p>\n<ul>\n<li>Randomly select <strong>at least<\/strong> 500 unique (non-repeat) cities based on latitude and longitude.<\/li>\n<li>Perform a weather check on each of the cities using a series of successive API calls.<\/li>\n<li>Include a print log of each city as it&#8217;s being processed with the city number and city name.<\/li>\n<li>Save a CSV of all retrieved data and a PNG image for each scatter plot.<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this example, you&#8217;ll be creating a Python script to visualize the weather of 500+ cities across the world of varying distance from the equator. To accomplish this, you&#8217;ll be utilizing a simple Python library, the OpenWeatherMap API, and a little common sense to create a representative model of weather across world cities. Your first [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-61431","post","type-post","status-publish","format-standard","hentry","category-education"],"_links":{"self":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/61431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/comments?post=61431"}],"version-history":[{"count":0,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/61431\/revisions"}],"wp:attachment":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/media?parent=61431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/categories?post=61431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/tags?post=61431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}