macpie.pandas.replace_suffix#

macpie.pandas.replace_suffix(df: DataFrame, old_suffix, new_suffix)#

For any column names containing old_suffix, replace the old_suffix with new_suffix.

Parameters:
dfDataFrame
old_suffixstr

suffix to replace

new_suffixstr

suffix to replace old_suffix