Microsoft Word - Document4
I'm doing this assignment on Jupyter
For each Problem:
look at the data and write python code that takes data from the online source and
manipulates them in a way that solves the problem or answers the question. Use
only li
aries and skills that you learned during this course so far. (do not use:
Numpy/Panda/ML/visualisation etc)
Write up a MINI-REPORT for each problem as 3 short paragraphs
Each mini-report XXXXXXXXXXwords long) will include 3 short paragraphs, each 2-3
sentences long. This is super short, so that you write down to the point and just
what's important.
Short Paragraph 1 – Problem: What problem you are solving and how you will solve
it with data.
Short Paragraph 2 – Analysis & Results: What analysis you prefromed in your
python code and what were the results
Short Paragraph 3 – Solution: What is the solution to the problem, and how your
analysis helped you to solve it
Note: It is ok when the tasks share some of the same code where appropriate. Just
make sure your minireports are separate from each other and clearly signposted,
and it's clear on which code they report.
– Problem 1: A convention of Scottish Star Wars movie fans is preparing for a
meeting and need some basic information to be printed about the movies: Take the
first 10 results of searching for a movie "star wars" and print information about each
movie (ratings, actors, plots, etc). Group movies into 3 groups by "imdb rating":
mediocre (below 7), good (7-8), amazing (8 and over). What is the average length of
a movie in each group? Are longer movies higher rated? Feel free to dd any more
small functionalities that you'd like.
– Problem 2: A convention of Scottish Star Wars movie fans is preparing for a bit
outdoors cosplay meeting and are considering three locations: Glasgow, Edinburgh
and Falkirk. They would like to know what is the weather like right now in these
locations. Print on the screen the weather information about these locations right
now in a way that makes it easy to compare and make a decision where the
costume party should happen. Can your code suggest the location (eg. one which
is warmest). If the event cannot happen now, which location has the best weather
tomo
ow or on another day?
Probem 1 API
your_api_key = "dd14dc5f"
page = 1
query = "star wars"
esult_type="movie"
year = ""
url =
f"http:
www.omdbapi.com/?s={query}&page={page}&apikey={your_api_key}&type
={result_type}&y={year}"
Problem 2 API
website: https:
www.weatherapi.com/
api key "2aee514fa2e3493e8b XXXXXXXXXX"
Search forecast for a location:
http:
api.weatherapi.com/v1/forecast.json?key=2aee514fa2e3493e8b XXXXXXXXXX
10&q=Edinburgh&days=7
************************