Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
177 B
2
Indexable
Never
def find_hip_hop(df, wrong):
    df['genre_name'] = df['genre_name'].replace(wrong, 'hiphop')
    total = df[df['genre_name'] == wrong]['genre_name'].count()
    return total