Python, Pandas, Data Science, Climate Change, Matplotlib.
Here’s an example code snippet to accomplish that: all_winters = df[df.index.get_level_values(level="timestamp").map(lambda x: x.month in [12, 1, 2])] all_summers = df[df.index.get_level_values(level="timestamp").map(lambda x: x.month in [6, 7, 8])] winters_europe = all_winters.xs("Europe",