def generate_class_label(data):
    '\n    generates class label on a copy of data using the columns\n    State, From_X, From_Y, To_X, To_Y\n    '
    r_data = data.copy()
    r_data['target'] = ((((((((r_data.State.astype(np.str) + '_') + r_data.From_X.astype(np.str)) + ',') + r_data.From_Y.astype(np.str)) + '_') + r_data.To_X.astype(np.str)) + ',') + r_data.To_Y.astype(np.str))
    return r_data
generates class label on a copy of data using the columns
State, From_X, From_Y, To_X, To_Y
def generate_class_label(data):
    '\n    generates class label on a copy of data using the columns\n    State, From_X, From_Y, To_X, To_Y\n    '
    r_data = data.copy()
    r_data['target'] = ((((((((r_data.State.astype(np.str) + '_') + r_data.From_X.astype(np.str)) + ',') + r_data.From_Y.astype(np.str)) + '_') + r_data.To_X.astype(np.str)) + ',') + r_data.To_Y.astype(np.str))
    return r_data