{ "cells": [ { "cell_type": "markdown", "id": "0", "metadata": {}, "source": [ "# Lesson: timeseries analysis and extreme values" ] }, { "cell_type": "markdown", "id": "1", "metadata": {}, "source": [ "Over the past two weeks, you’ve learned how to work with *NetCDF* files, exploring their complex multidimensional structures, plotting global maps, and summarizing climate projection datasets. Today, we’re shifting gears slightly. Instead of working with gridded data, we’ll (temporarily) return to something more familiar perhaps: time series in tabular form. While this may seem simpler at first, handling time series data comes with its own set of challenges!\n", "\n", "To get started, let’s import the libraries we’ll be using. This week, we’re introducing two key newcomers:\n", "- [pandas](https://pandas.pydata.org/), replacing xarray for now: pandas is the backbone of data analysis in Python. It actually predates xarray and serves as the foundation for many of its core functions. If you’ve grown comfortable with xarray, you’ll likely find pandas’ syntax quite familiar.\n", "- [SciPy](https://scipy.org/): the Swiss Army knife of statistical analysis in Python. Whether you’re performing interpolation, fitting models, or conducting statistical tests, SciPy is an essential tool for scientific computing.\n", "\n", "*Copyright notice: parts of this class is inpired by the excellent [climatematch tutorials](https://comptools.climatematch.io/tutorials/W2D3_ExtremesandVariability/student/W2D3_Tutorial2.html). I really recommend you to check them out!*\n", "\n", "