File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2685,7 +2685,9 @@ def dtypes(self) -> Series:
2685
2685
)
2686
2686
2687
2687
# error: Incompatible return value type (got "DataFrame", expected "Series")
2688
- return self .apply (lambda df : df .dtypes ) # type: ignore[return-value]
2688
+ return self ._python_apply_general ( # type: ignore[return-value]
2689
+ lambda df : df .dtypes , self ._selected_obj
2690
+ )
2689
2691
2690
2692
@doc (DataFrame .corrwith .__doc__ )
2691
2693
def corrwith (
Original file line number Diff line number Diff line change @@ -673,14 +673,14 @@ def f(self):
673
673
return self .plot (* args , ** kwargs )
674
674
675
675
f .__name__ = "plot"
676
- return self ._groupby .apply ( f )
676
+ return self ._groupby ._python_apply_general ( f , self . _groupby . _selected_obj )
677
677
678
678
def __getattr__ (self , name : str ):
679
679
def attr (* args , ** kwargs ):
680
680
def f (self ):
681
681
return getattr (self .plot , name )(* args , ** kwargs )
682
682
683
- return self ._groupby .apply ( f )
683
+ return self ._groupby ._python_apply_general ( f , self . _groupby . _selected_obj )
684
684
685
685
return attr
686
686
@@ -1117,7 +1117,7 @@ def curried(x):
1117
1117
# special case otherwise extra plots are created when catching the
1118
1118
# exception below
1119
1119
if name in base .plotting_methods :
1120
- return self .apply (curried )
1120
+ return self ._python_apply_general (curried , self . _selected_obj )
1121
1121
1122
1122
is_transform = name in base .transformation_kernels
1123
1123
result = self ._python_apply_general (
You can’t perform that action at this time.
0 commit comments