- 16th Jul 2024
- 17:44 pm
In this assignment our experts can guide you in developing Python programs to retrieve, process, and visualize data from various sources, ensuring you master essential skills for real-world applications. They will assist you in creating accurate and insightful data visualizations, leveraging APIs, and handling user inputs effectively. Demonstrate your Python skills in retrieving, understanding, and processing data from users, files and APIs. Demonstrate your Python skills in producing Data Visualizations to communicate your data. Demonstrate your python skill in working independently exploring packages we have not covered together in class.
- Write a python program to report the Sitka Daily Precipitation using sitka_weather_2018_simple.csv.
- Write a program which accesses the omdbapi and outputs the below specific information about the film ‘Python’.
- Write a program which charts the daily high and low temperatures in NYC in 2021. A csv of the data is provided: nyc_temps.csv
- Write a program which charts the lifetime earnings of individuals with different educational backgrounds using the data provided in the table below.
- Write a program which takes user input from the console to provide information to users about movies. Use the OMDB API. Review the output below and the JSON data which the API provides to successfully write this program. The user should be able to enter movie after movie as many times as they choose until they choose to quit.
Data Retrieval, Processing, Visualization, and API Integration - ET574 - Get Assignment Solution
Please note that this is a sample assignment solved by our Python Experts. These solutions are intended to be used for research and reference purposes only. If you can learn any concepts by going through the reports and code, then our Python Tutors would be very happy.
- To download the complete solution along with Code, Report and screenshots - Please visit our Python Assignment Sample Solution page
- Reach out to our Python Tutors to get online tutoring related to this assignment and get your doubts cleared
- You can check the partial solution for this assignment in this blog below
Free Assignment Solution - Data Retrieval, Processing, Visualization, and API Integration - ET574
# -*- coding: utf-8 -*-
"""
# Commented out IPython magic to ensure Python compatibility.
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# %matplotlib inline
import warnings
warnings.simplefilter("ignore")
""">1. Write a python program to report the Sitka Daily Precipitation
using sitka_weather_2018_simple.csv.
"""
df= pd.read_csv("/content/sitka_weather_2018_simple.csv")
df.set_index("DATE", inplace = True)
fig, ax = plt.subplots()
fig.set_size_inches(15, 5)
plt.plot(df["PRCP"])
plt.xticks(rotation=70)
plt.ylabel("Precipitaion (in.)")
plt.title("Sitka Daily Precipitation (inches) - 2018")
start, end = ax.get_xlim()
ax.xaxis.set_ticks(np.arange(start, end, 20))
for txt in fig.texts:
txt.set_visible(False)
""">2. Write a program which accesses the omdbapi and outputs the
below specific information about the film ‘Python’.
"""
import requests
data_URL = "http://www.omdbapi.com/?i=tt3896198&apikey=324034ab"
movie = 'Python'
params = {'t':movie}
response = requests.get(data_URL,params=params).json()
print("{} -- Released on: {} -- Movie Length: {}\nwritten by: {}".format(response["Title"],
response["Released"],
response["Runtime"],
response["Writer"]))
""">3. Write a program which charts the daily high and low temperatures in NYC
in 2021. A csv of the data is provided: nyc_temps.csv
"""
df = pd.read_csv("/content/nyc_temps.csv")
df.set_index("DATE", inplace = True)
fig, ax = plt.subplots()
fig.set_size_inches(15, 5)
plt.plot(df["TMAX"])
plt.plot(df["TMIN"])
plt.xticks(rotation=70)
plt.ylabel("Temperation (F)")
plt.title("NYC: Daily High & Low Temps")
start, end = ax.get_xlim()
ax.xaxis.set_ticks(np.arange(start, end, 5))
for txt in fig.texts:
txt.set_visible(False)
"""4. Write a program which charts the lifetime earnings of individuals with
different educational backgrounds using the data provided in the table
below.
"""
df = pd.DataFrame({"Educational Attainment":["< HS", "HS grad", "Some college","Bachelors", "Graduate"],
"Gross":[1.13, 1.54, 1.76, 2.43, 3.05]})
fig, ax = plt.subplots()
fig.set_size_inches(15, 5)
bars = ax.barh(df["Educational Attainment"],df["Gross"], 0.5)
plt.title("Lifetime Gross Earning (in $ millions)")
for txt in fig.texts:
txt.set_visible(False)
""">5. Write a program which takes user input from the console to provide
information to users about movies. Use the OMDB API. Review the output
below and the JSON data which the API provides to successfully write this
program. The user should be able to enter movie after movie as many
times as they choose until they choose to quit.
"""
flag = True
while(flag):
movie = input("What movie may i tell you about? ")
if movie.lower() == "quit":
break
params = {'t':movie}
response = requests.get(data_URL,params=params).json()
print("{} --- {} --- {}\n{}\n".format(response["Title"],
response["Released"],
response["Rated"],
response["Plot"]))
Get the best Data Retrieval, Processing, Visualization, and API Integration - ET574 assignment help and tutoring services from our experts now!
About The Author - John Doe
John Doe is an accomplished Python programmer specializing in data retrieval, processing, and visualization. With extensive experience in API integration, file handling, and user interaction, John excels in creating insightful Python applications. His proficiency spans weather reporting, movie information retrieval, and data visualization, showcasing his expertise in diverse programming challenges.