Advertisement
Vitaliy_Novichikhin

10.7.8/8 7.Яндекс.Музыка: дубликаты

Mar 7th, 2022
2,031
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. import pandas as pd
  2. df = pd.read_csv('music_log_upd_nan.csv')
  3. print(df['genre_name'].unique())
  4. df['genre_name'] = df['genre_name'].replace('электроника', 'electronic')
  5. #задача №8/8 пересчитать количество значений "элекстроника в стобце genre_name"
  6. genre_final_count = df['genre_name']['электроника'].count()
  7. print(genre_final_count)
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement