[ad_1]
5 examples from the Significant Volcanic Eruption database
Plotly is a great open source library for visualizing data. In this blog post, I am going to show you how to generate cartographic plots with plotly, working with the Python backend.
For illustration purposes, I will use the Significant Volcanic Eruption Database, published by the US National Centers for Environmental Information under the U.S. Government Work License. The dataset is available for download here: https://public.opendatasoft.com/explore/dataset/significant-volcanic-eruption-database/information/
You are going to see the following five visualizations:
- Global distribution of significant volcanic eruptions
- Volcano types in North America
- Volcanic eruptions associated with tsunamis
- Most damaging volcanic eruptions
- Funny map projections
For readers interested in using plotly for data analysis, please refer to my recent post on visualizing data from the Women’s World Cup:
Preparing the data
After downloading the volcanic eruption database, we load it as a pandas DataFrame. DataFrames integrate naturally with Plotly and are convenient for data analysis. We transform the columns that encode whether a volcanic eruption is associated with a volcano or an earthquake to True/False values and add new columns for the latitude and longitude of an eruption.
Source link