File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -666,21 +666,21 @@ The dimension of the returned result can also change:
666
666
667
667
.. warning ::
668
668
669
- In the current implementation apply calls func twice on the
670
- first group to decide whether it can take a fast or slow code
671
- path. This can lead to unexpected behavior if func has
672
- side-effects, as they will take effect twice for the first
673
- group.
669
+ In the current implementation apply calls func twice on the
670
+ first group to decide whether it can take a fast or slow code
671
+ path. This can lead to unexpected behavior if func has
672
+ side-effects, as they will take effect twice for the first
673
+ group.
674
674
675
675
.. ipython :: python
676
-
676
+
677
677
d = DataFrame({" a" :[" x" , " y" ], " b" :[1 ,2 ]})
678
678
def identity (df ):
679
- print df
680
- return df
681
-
679
+ print df
680
+ return df
681
+
682
682
d.groupby(" a" ).apply(identity)
683
-
683
+
684
684
685
685
Other useful features
686
686
---------------------
You can’t perform that action at this time.
0 commit comments