Skip to content

Commit e48c30e

Browse files
author
sjoshistrats
authored
Update README.md
1 parent 4a93e70 commit e48c30e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ gids = np.array([1, -3, 1])
3333
grpd = fastgrouper.arr.Grouped(gids)
3434
result = grpd.apply(baz, xvals, y=yvals) # np.array([7.5, 4])
3535

36-
# Perform groupby-apply, and then expand results back to align with the gids provided.
37-
result = grpd.apply_expand(baz, xvals, yvals) # np.array([7.5, 4])
36+
# The gids correponding to the result above can be found via the `dedup_gids` attribute.
37+
grpd.dedup_gids # np.array([ 1, -3])
3838

39-
# Perform groupby-apply, and then expand results back to align with the gids provided.
39+
# Users can also perform groupby-apply, and then expand results back to align with the original gids.
4040
result = grpd.apply_expand(baz, xvals, yvals) # np.array([7.5, 4, 7.5])
4141
```
4242

0 commit comments

Comments
 (0)