Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- df = pd.read_csv('music_log_upd_nan.csv')
- print(df['genre_name'].unique())
- df['genre_name'] = df['genre_name'].replace('электроника', 'electronic')
- #задача №8/8 пересчитать количество значений "элекстроника в стобце genre_name"
- genre_final_count = df['genre_name']['электроника'].count()
- print(genre_final_count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement