fips.indexes.apply_to_index#
- fips.indexes.apply_to_index(func)[source]#
Apply a single-index function to each level of a MultiIndex.
- Parameters:
func (function) – A function that takes a single pd.Index and returns a modified pd.Index. This function will be applied to each level of a MultiIndex, or directly to a single Index.
- Returns:
A wrapper function that applies the given function to each level of a MultiIndex or to a single Index.
- Return type:
function