const_idx¶
- outbreak_tools.const_idx(df, const, level)¶
Set one level of a multi-indexed df to a constant.
- Parameters
df -- multi-indexed pandas dataframe.
const -- constant value to assign to index.
level -- level of index to change.
- Returns
the modified dataframe.