From 38e88b58f4599f68ad322b4a2dfda5083d2703c1 Mon Sep 17 00:00:00 2001 From: Andrew <15331990+ahuang11@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:06:33 -0700 Subject: [PATCH] Groupby two dims instead --- overview/xarray-in-45-min.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/overview/xarray-in-45-min.ipynb b/overview/xarray-in-45-min.ipynb index e36377b0..35a84cd6 100644 --- a/overview/xarray-in-45-min.ipynb +++ b/overview/xarray-in-45-min.ipynb @@ -1106,8 +1106,8 @@ "source": [ "import hvplot.xarray\n", "\n", - "ds.mean(\"time\").hvplot(\n", - " groupby=\"lat\",\n", + "ds.groupby(\"time.season\").mean().hvplot(\n", + " groupby=[\"season\", \"lat\"],\n", " hover=\"vline\",\n", " responsive=True,\n", " dynamic=False,\n",