File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -915,13 +915,17 @@ The dimension of the returned result can also change:
915
915
So depending on the path taken, and exactly what you are grouping. Thus the grouped columns(s) may be included in
916
916
the output as well as set the indices.
917
917
918
- .. warning ::
918
+ .. warnings ::
919
919
920
- In the current implementation apply calls func twice on the
920
+ * In the current implementation apply calls func twice on the
921
921
first group to decide whether it can take a fast or slow code
922
922
path. This can lead to unexpected behavior if func has
923
923
side-effects, as they will take effect twice for the first
924
924
group.
925
+
926
+ * Apply should not perform in-place operations on the group chunk.
927
+ Group chunks should be treated as immutable, and changes to a
928
+ group chunk may produce unexpected results.
925
929
926
930
.. ipython :: python
927
931
You can’t perform that action at this time.
0 commit comments