def derive_queue_len_from_count(df_x_name, predicted_rf_counts):
    """Use the ML classifications of queue count to estimate queue length for each link"""
    # get the index values from X
    idx = df_x_name.index.tolist()
    # replaced veh_len_avg_in_group with avg_veh_len IF Na/0
    # get the veh_len_avg_in_group 
    veh_len_avg_grp = df_x_name.iloc[idx]['veh_len_avg_in_group'].to_numpy()
    pred_q_len = predicted_rf_counts*veh_len_avg_grp
    return pred_q_len