fips.indexes.assign_block#
- fips.indexes.assign_block(index, block)[source]#
Assign or overwrite a ‘block’ level in the index.
- Parameters:
index (pd.Index) – The original index to which the block level will be assigned.
block (str) – The block name to assign to the index.
- Returns:
A new index with the ‘block’ level assigned to the specified block name.
- Return type:
pd.Index