Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Monthly atmospheric carbon dioxide measurements from Mauna Loa for building climate-trend monitors and educational concentration trackers.
From source to product signal
NOAA GML publishes monthly mean carbon dioxide mole fractions from the Mauna Loa observatory as a small CSV. Start with the in-situ monthly file. These values represent one high-altitude Pacific site after quality control, not a global average or a local urban concentration.
Install the packages, then run the notebook cell.
python -m pip install pandas
import pandas as pd
co2 = pd.read_csv(
"https://gml.noaa.gov/webdata/ccgg/trends/co2/co2_mm_mlo.csv",
comment="#",
)
co2["date"] = pd.to_datetime(
dict(year=co2["year"], month=co2["month"], day=1)
)
print(co2[["date", "average", "deseasonalized"]].tail())Test a useful signal
Test whether the monthly file can power a simple concentration-trend monitor.
NOAA Global Monitoring Laboratory is a government source. Last verified 2026-08-18. Temporal coverage: 1958-present.