Sustainability - A side-effect of globalization?¶
Globalization promises prosperity, but this may impact the health of the natural environment. Economic activities across the globe have reduced earth’s ability to provide necessary resources. Global warming is one of the major environmental concerns which has been largely influenced by the emission of greenhouse gases like carbon dioxide (CO2).
Let us try to find the connection between globalization and CO2 emissions across the world. The dataset was obtained from Our World in Data, and contains per capita CO2 emission by various countries since the early 1800s.
CO2 emissions contributions of an average person in around the world¶
Let’s check out how people in different countries contributed to the CO2 emissions. Run the following cells to see a preview of the data and an animated choropleth map.
# Import Python libraries
import pandas as pd
import plotly_express as px
from ipywidgets import interact, fixed, widgets, Layout, Button, Box, fixed, HBox, VBox
import plotly.graph_objects as go
from plotly.subplots import make_subplots
from IPython.display import clear_output
# Don't show warnings in output
import warnings
warnings.filterwarnings('ignore')
print('Libraries successfully imported.')
# Import the dataset
df = pd.read_csv('./Data/co-emissions-per-capita.csv')
# Data clean up - keep rows pertaining to 1851-current and rename the columns
df = df[df['Year'] > 1850]\
.rename(columns={'Code':'Country Code',
'Per capita CO₂ emissions (tonnes per capita)':'CO₂ emissions<br>(tonnes per capita)'})
# Display the top 5 rows
df.head()
# Plot an animated choropleth map (Execution of this code cell will take a little while)
fig = px.choropleth(df, # dataframe with required data
locations="Country Code", # Column containing country codes
color="CO₂ emissions<br>(tonnes per capita)", # Color of country should be based on per capita CO₂ emission
hover_name="Entity", # Title to add to hover information
hover_data=["CO₂ emissions<br>(tonnes per capita)"], # Data to add to hover information
color_continuous_scale=px.colors.sequential.Reds, # Set the colorscale type
animation_frame = "Year", # Values based on which animation frame will be prepared
range_color = [0,20], # Range of the colorbar
# Title of the chart
title = 'Per capita CO₂ emissions for countries around the world<br>\
Source: <a href="https://ourworldindata.org/co2-and-other-greenhouse-gas-emissions">Our World in Data</a>'
)
fig.update_layout(geo=dict(showcountries=True))
# Show the figure
fig.show()
Click on the ▶ (play) button to see it change over time. Move your mouse around the map to see values for the per capita CO2 emission by different countries.
Questions¶
Before 1900, which country had the highest per capita emission? Why might that be?
According to the latest data, how would you rate Canada’s per capita emission as compared to other countries with large populations?
Is there significant inequality in per capita emissions around the world? How does this relate to globalization?