Skip to content

Commit ba9f822

Browse files
Modify code in "Grouped arithmetic" (#3904)
`results.append(group - alt.sel(x=label))` changed to: `results.append(group - alt.sel(letters=label))`
1 parent 782e0e2 commit ba9f822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/groupby.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ This last line is roughly equivalent to the following::
157157

158158
results = []
159159
for label, group in ds.groupby('letters'):
160-
results.append(group - alt.sel(x=label))
160+
results.append(group - alt.sel(letters=label))
161161
xr.concat(results, dim='x')
162162

163163
Squeezing

0 commit comments

Comments
 (0)