def convert_preferred_foot(df):
    df['preferred_foot'] = df['preferred_foot'].replace('Right', 1)
    df['preferred_foot'] = df['preferred_foot'].replace('Left', 2)
    return df
def convert_preferred_foot(df):
    df['preferred_foot'] = df['preferred_foot'].replace('Right', 1)
    df['preferred_foot'] = df['preferred_foot'].replace('Left', 2)
    return df