Feature Type
-
[X] Adding new functionality to pandas
-
[ ] Changing existing functionality in pandas
-
[ ] Removing existing functionality in pandas
Problem Description
I often use Series.apply with keyword arguments, mostly on custom functions that take keyword arguments. I find I also often want to do this on a (Multi)Index, but Index only has the map function which does not accept keyword arguments.
Feature Description
Since Series has both the apply and map functions, I'd love to see the apply function including support for keyword arguments on the Index class.
Alternative Solutions
The workaround is to use lambdas or Index.to_series().apply
Additional Context
No response
Comment From: rhshadrach
+1, I think adding args would be good too.