Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 38e88b5

Browse files
authored
Groupby two dims instead
1 parent e5f2b8d commit 38e88b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

overview/xarray-in-45-min.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,8 +1106,8 @@
11061106
"source": [
11071107
"import hvplot.xarray\n",
11081108
"\n",
1109-
"ds.mean(\"time\").hvplot(\n",
1110-
" groupby=\"lat\",\n",
1109+
"ds.groupby(\"time.season\").mean().hvplot(\n",
1110+
" groupby=[\"season\", \"lat\"],\n",
11111111
" hover=\"vline\",\n",
11121112
" responsive=True,\n",
11131113
" dynamic=False,\n",

0 commit comments

Comments
 (0)