Run in Google Colab
|
View on GitHub
|
Homework 10 - Maps (optional)¶
In this homework, we want to see a map visualization. Feel free to use any dataset you like. We recommend the use of Altair.
Instructions¶
Project Setup:
- Set up your Python and Jupyter (or VSCode) environment.
- Clone or download the repository provided in class (refer to the class notes).
Choose a Dataset:
- You can use any dataset with geographic data. Even a dataset you have used for your project is fine.
Identify The Geolocated Features:
- Identify which features can be used for geolocation in your dataset. Examples include latitude and longitude, city names, state names, country names, or any other geographic identifiers.
Choose a map visualization approach:
- Select a map visualization based on the methods explored in class or in the previous materials.
- We recommend using Altair for its simplicity and effectiveness in creating interactive visualizations. But you are free to use other libraries.
Documentation:
- Comment your code and add markdown explanations for each part of your analysis.
Example datasets
Global Earthquakes - USGS (CSV feeds) https://earthquake.usgs.gov/earthquakes/feed/v1.0/csv.php
Airbnb Listings - Inside Airbnb (CSV per city) http://insideairbnb.com/get-the-data/
Meteorite Landings - NASA Open Data (CSV) https://www.kaggle.com/datasets/nasa/meteorite-landings
US County Population (2018 estimates) - Census Bureau (CSV) https://www2.census.gov/programs-surveys/popest/datasets/2010-2018/counties/totals/co-est2018-alldata.csv
World Happiness Report (by country) (CSV) https://worldhappiness.report/data-sharing/
- Submission:
- Ensure your notebook is complete and all cells are executed without errors.
- Save your notebook and export as either PDF or HTML. If the visualizations using altair are not being shown in the html, submit a separated version with altair html. Refer to: https://altair-viz.github.io/getting_started/starting.html#publishing-your-visualization (you can use the
chart.save('chart_file.html')method). - Submit to Canvas.
Run in Google Colab
View on GitHub