fips.indexes.round_index#
- fips.indexes.round_index(index, decimals)[source]#
Round float indices to specified decimals.
- Parameters:
index (pd.Index) – The index to round.
decimals (int) – The number of decimal places to round to.
- Returns:
A new index with float values rounded to the specified number of decimals. Non-float indices are returned unchanged.
- Return type:
pd.Index