Skip to content

Commit 4a93e70

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

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

3636
# 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. , 7.5])
37+
result = grpd.apply_expand(baz, xvals, yvals) # np.array([7.5, 4])
3838

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

4343
The `li` interface returns the results over the groups as a list (instead of an array); this may be useful for functions that return different-sized results. Note that in all interfaces (e.g. both `arr` and `li`), the order in which the group elements appear is preserved when the group slices are passed to the function being applied.

0 commit comments

Comments
 (0)