Categories: Articles

Visualizing geographic data using Plotly in Python

In 2019, IEEE ranked Python as the top programming language in the world (Link: Many data scientists and business analytics professions still felt that R was better, specifically in the areas of statistical analysis and visualization.

Python has a lot of libraries for visualizations including matplotlib and seaborn. Earlier, visualizing geographic data was a challenge. Geopandas was not simple to use. With Plotly this has changed.

We share a colab file which visualizes geographic data using Plotly in Python. Link to the file:

Please feel free to copy it to your drive and run the file that will show how COVID-19 has moved from a local health concern to a global pandemic.

We took the raw time-series data from the widely used John Hopkins repo, processed it and then using Plotly to graphically show the spread of worldwide spread of coronavirus over time. We have four charts which are automated using choropleth maps in Python with Plotly for global confirmed cases, deaths, recovered and existing cases. 

Using the play button, you can see how the cases spread over time. Using Plotly, we showcase how simple it is to build an automated geographical visualisation. 

Hope you enjoy it!

Looking to learn Python and data analytics and visualization? Try out our Postgraduate Diploma In Data Science (PGD-DS) Link and Integrated Program In Business Analytics (IPBA)  Link: programs!

Kamal Das

Published by
Kamal Das

Recent Posts

Books on Analytics

Analytics is a vast field. At the one end, it overlaps with statistics and higher…

Career in analytics in a KPO

Do you love to explore and investigate information? Do you find spreadsheets to be a…

Indian companies using analytics

India has developed into the global hub for analytics. A large number of MNCs have…

IBM: Betting big on analytics

International Business Machines Corp. Or IBM as it is popularly known recently announced its restructuring…

How to build a successful career in analytics

So you have got a job as an analyst in your dream company? Here are…

What’s the sentiment on “sentiment analysis”?

What's the sentiment on "sentiment analysis"? Is the field ready to take off?