def clean_categories(df):
    """
    Preprocess the categories attribute of the business dataframe
    :param df: business dataframe
    :return: business dataframe with cleaned category attribute
    """
    df['categories'] = df['categories'].apply(lambda x: str(x).split(','))
    return df