CAIDA / catalog-data

Repo which holds some panda solutions and papers
4 stars 6 forks source link

(GMI 1.3.1) recipe: How to make a density plot. #319

Closed bhuffaker closed 2 years ago

bhuffaker commented 2 years ago

Please create a recipe with sample code and very small sample data on making a density plot.

bhuffaker commented 2 years ago

@vicky please review https://github.com/CAIDA/catalog-data/tree/319-how-to-make-a-density-plot/sources/recipe/how_to_make_a_density_map

richmass1 commented 2 years ago

TODO: make a comment differentiating between choropleth code and code to make proportional symbols (remove proportional symbol code entirely?) remove all data reformatting stuff (i.e. assume that anyone using this recipe has already formatted their data in one of the ways described below) focus on the code for rendering the maps two python scripts taking CSV file paths as input: first should take simple list of lats/longs and values, then produce smooth density heatmap second should take country codes and values and produce choropleth Reformat ookla_server_locations.json and CAIDA_users_by country_2020.csv into the formats specified above, save as new files to be used for examples explain how to use pip to install all of the packages listed in requirements.txt (i think it's just pip install -r requirements)

richmass1 commented 2 years ago

https://github.com/CAIDA/catalog-data/tree/319-how-to-make-a-density-plot/sources/recipe/how_to_make_a_density_map