def extract_username(df):
    """
    Extracts and creates a new column for username from user column, which exists as a dictionary with many keys.
    """
    df['user_name'] = df['user'].apply(lambda x: x.get('screen_name'))
    return df