Панды заполняют строки, которые встречаются реже

df.loc[df[col].value_counts()[df[col]].values < 10, col] = "RARE_VALUE"
Real Raccoon