def df_float_formatter(df, formatter="{:.2f}"):
    """Select float columns and format them with formatter."""
    float_col = df.select_dtypes(include='float64').columns
    format_dict = {col: formatter for col in float_col}
    df = df.style.format(format_dict)
    return df