@@ -2021,7 +2021,7 @@ def apply(
20212021 more details.
20222022 """
20232023 self ._todo .append (
2024- (lambda instance : getattr ( instance , " _apply" ) , (func , axis , subset ), kwargs )
2024+ (lambda instance : instance . _apply , (func , axis , subset ), kwargs )
20252025 )
20262026 return self
20272027
@@ -2128,7 +2128,7 @@ def apply_index(
21282128 """
21292129 self ._todo .append (
21302130 (
2131- lambda instance : getattr ( instance , " _apply_index" ) ,
2131+ lambda instance : instance . _apply_index ,
21322132 (func , axis , level , "apply" ),
21332133 kwargs ,
21342134 )
@@ -2157,7 +2157,7 @@ def map_index(
21572157 ) -> Styler :
21582158 self ._todo .append (
21592159 (
2160- lambda instance : getattr ( instance , " _apply_index" ) ,
2160+ lambda instance : instance . _apply_index ,
21612161 (func , axis , level , "map" ),
21622162 kwargs ,
21632163 )
@@ -2230,9 +2230,7 @@ def map(self, func: Callable, subset: Subset | None = None, **kwargs) -> Styler:
22302230 See `Table Visualization <../../user_guide/style.ipynb>`_ user guide for
22312231 more details.
22322232 """
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 ))
22362234 return self
22372235
22382236 def set_table_attributes (self , attributes : str ) -> Styler :
0 commit comments