This repository contains Python code for performing time series analysis, including computing monthly climatology and anomalies.
The code provides two main functions:
monthly_climatology(df)
: Computes the monthly climatology (seasonal cycle) of a given time series.anomaly(df)
: Computes the anomaly of a given time series by removing the climatology.
Additionally, an example_usage()
function demonstrates how to use the provided functions to analyze temperature data.
The code relies on the following Python libraries:
- pandas
- matplotlib