opendatapune / Problem-Statements

See the wiki for problem statements and issues to co-ordinate participation
GNU General Public License v3.0
1 stars 1 forks source link

Sanitation data on PODP #16

Open answerquest opened 5 years ago

answerquest commented 5 years ago

https://github.com/opendatapune/Problem-Statements/wiki/Sanitation-data-on-PODP

ShripadMhetre commented 5 years ago

Hello Sir,

The link to our sanitation data repository is given below,

https://github.com/ShripadMhetre/OpenData_Hackathon_Pune

From, Shripad Mhetre -> SY IT COEP -> MIS NO. 111708036 Abhishek Jadhavar -> SY IT COEP

answerquest commented 5 years ago

Hi @ShripadMhetre , I got the choropleth working: (EDIT, 19.2.18: Hosting on kyson.io, it displays everything properly)
http://kyso.io/answerquest/podp-sanitation

~https://gist.github.com/answerquest/4d78201c03378071419990b8c95dd9d8 (github doesn't show the map but its working on my end, see screenshot )~

I followed steps from here : https://nbviewer.jupyter.org/github/python-visualization/folium/blob/master/examples/GeoJSON_and_choropleth.ipynb#Using-Choropleth-class uptill step 17. Rest your team can take it forward.

I think we had to keep all statements from m= ... to final map display in same place, so the map is declared fresh.

Next steps :

  1. Adjust the bounds / bins to get proper variation between the wards. If one number is too high, everything else becomes yellow. So we need to tweak the numbers at which color changes.
  2. It seems we can add multiple layers and keep layers hidden (in control box, checked off) with show=False. See the very last step on the guide page shared above. So, create one layer for each metric.
  3. Use folium to save the map as a .html page that anyone can open, and put it on your repo.
  4. Oh, and change the repo's name to "COEP_Hackathon_SanitationData" or something of the sort that says it's about this data.
answerquest commented 5 years ago

@ShripadMhetre any updates? Use kyso.io to host the python notebook : they render the map beautifully.