def filter_genre(genre):
    """
    Create filter function for row of pandas df
    :param genre: string genre to filter out
    :return: Function that returns True if genre is in the row genre string
    """
    def wrap(row):
        genres = row['genre']

        if isinstance(genres, str):
            return genre in genres.split(', ')

        return False

    return wrap