@@ -2021,7 +2021,7 @@ def apply(
2021
2021
more details.
2022
2022
"""
2023
2023
self ._todo .append (
2024
- (lambda instance : getattr ( instance , " _apply" ) , (func , axis , subset ), kwargs )
2024
+ (lambda instance : instance . _apply , (func , axis , subset ), kwargs )
2025
2025
)
2026
2026
return self
2027
2027
@@ -2128,7 +2128,7 @@ def apply_index(
2128
2128
"""
2129
2129
self ._todo .append (
2130
2130
(
2131
- lambda instance : getattr ( instance , " _apply_index" ) ,
2131
+ lambda instance : instance . _apply_index ,
2132
2132
(func , axis , level , "apply" ),
2133
2133
kwargs ,
2134
2134
)
@@ -2157,7 +2157,7 @@ def map_index(
2157
2157
) -> Styler :
2158
2158
self ._todo .append (
2159
2159
(
2160
- lambda instance : getattr ( instance , " _apply_index" ) ,
2160
+ lambda instance : instance . _apply_index ,
2161
2161
(func , axis , level , "map" ),
2162
2162
kwargs ,
2163
2163
)
@@ -2230,9 +2230,7 @@ def map(self, func: Callable, subset: Subset | None = None, **kwargs) -> Styler:
2230
2230
See `Table Visualization <../../user_guide/style.ipynb>`_ user guide for
2231
2231
more details.
2232
2232
"""
2233
- self ._todo .append (
2234
- (lambda instance : getattr (instance , "_map" ), (func , subset ), kwargs )
2235
- )
2233
+ self ._todo .append ((lambda instance : instance ._map , (func , subset ), kwargs ))
2236
2234
return self
2237
2235
2238
2236
def set_table_attributes (self , attributes : str ) -> Styler :
0 commit comments