def get_customer_rates(df_cust):

    """
    Takes in a customer dataframe
    and calculates the following 
    rates:

    Order Spend Rate
    Quantity Spend Rate
    Quantity Rate

    Parameters:
    -----------

    df_cust : dataframe

    The customer dataframe

    Returns:
    --------

    df_out : dataframe

    Dataframe with the rates
    calculates

    """

    df_out = df_cust.copy()

    # Calculate all rates and return
    # the final dataframe
    df_out["ord_spend_rate"] = df_out["total_spend"] / df_out["orders"]
    df_out["quant_spend_rate"] = df_out["total_spend"] / df_out["quantity"]
    df_out["quant_rate"] = df_out["quantity"] / df_out["orders"]

    return df_out