Sample Choropleth Map for Telangana State

189 views
Skip to first unread message

Sathwik Mohan Vangari

unread,
Jul 2, 2021, 11:17:29 AM7/2/21
to Telangana Open Data Community
Hello All,

Firstly, thank you very much for providing Telangana State shape files without which plotting wouldn't have been possible.

I created a sample choropleth map of Telangana using Python and associated libraries (Geopandas, plotly etc.). The code is available on this link. (https://github.com/vsathwikm/OpenDataSets/blob/main/TS_Map/TelanganaState_PlotlyChoroplethMap.ipynb) Feel free to change and use this visualization in any of your data analyses or data visualizations.

Best,
Sathwik.

Pujitha Jaji

unread,
Jul 2, 2021, 11:36:21 AM7/2/21
to Sathwik Mohan Vangari, Telangana Open Data Community
Good work Sathwik, really appreciate it that you made available to our community.

Regards,
Pujitha Jaji

--
You received this message because you are subscribed to the Google Groups "Telangana Open Data Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to telangana-open-data-...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/telangana-open-data-community/303261e9-e262-4524-92c9-b3e70b61baf7n%40googlegroups.com.

Nikhil VJ

unread,
Jul 3, 2021, 12:56:51 AM7/3/21
to Sathwik Mohan Vangari, Telangana Open Data Community
Hi Sathwik,
Great work!

There's another lib in python that's dedicated to map based viz and uses the popular open source leaflet js as base: folium.

Check out the choropleth viz example in this tutorial page:

One big advantage I've found with folium is that you can save your interactive viz to a .html file with this command:
m.save("map.html")  

... and share that with colleagues on email, host it on a web server (or do github pages of your repo), embed the code in a blog, etc. Recipients get the full zoomable interactive map without having to install anything at their end. It also feels faster and lighter to navigate the map.
 
--
Cheers,
Nikhil VJ
https://nikhilvj.co.in


Sathwik Mohan Vangari

unread,
Jul 3, 2021, 11:44:24 AM7/3/21
to Telangana Open Data Community
Thank you Ma'am. Thank you Nikhil. Folium looks neat. Plotly also has the same features as you mentioned and these visualizations can be deployed using Plotly Dash.

However, Folium seems to achieve the same functionality with very little code as compared to Dash. Will definitely try this.

Best,
Sathwik.

Reply all
Reply to author
Forward
0 new messages