5 examples from the Important Volcanic Eruption database
Plotly is a superb open supply library for visualizing knowledge. On this weblog put up, I’m going to indicate you how one can generate cartographic plots with plotly, working with the Python backend.
For illustration functions, I’ll use the Important Volcanic Eruption Database, revealed by the US Nationwide Facilities for Environmental Info below the U.S. Authorities Work License. The dataset is on the market for obtain right here: https://public.opendatasoft.com/discover/dataset/significant-volcanic-eruption-database/data/
You will see the next 5 visualizations:
- World distribution of serious volcanic eruptions
- Volcano sorts in North America
- Volcanic eruptions related to tsunamis
- Most damaging volcanic eruptions
- Humorous map projections
For readers concerned about utilizing plotly for knowledge evaluation, please discuss with my current put up on visualizing knowledge from the Girls’s World Cup:
Making ready the info
After downloading the volcanic eruption database, we load it as a pandas DataFrame. DataFrames combine naturally with Plotly and are handy for knowledge evaluation. We remodel the columns that encode whether or not a volcanic eruption is related to a volcano or an earthquake to True/False values and add new columns for the latitude and longitude of an eruption.