def METHOD_NAME(df, column_name, output_name):
    df[output_name] = pd.cut(df[column_name], 1000).astype(str)
    cat = df[output_name].str.extract(r"\((.*),", expand=False).astype(float)
    df["bin"] = pd.Series(cat)
    df.sort_values(by="bin", inplace=True)
    df[output_name] = df[output_name].str.replace(",", " -")
    df[output_name] = df[output_name].str.replace("(", "")
    df[output_name] = df[output_name].str.replace("]", "")
    return df