SHARE
TWEET

Untitled

a guest Apr 26th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import pandas as pd
  2. df = pd.read_csv('music_log_upd.csv')
  3. pop_music = df[(df['genre_name'] == 'pop') & (df['total_play_seconds'] != 0)]
  4. pop_music_max_total_play = pop_music['total_play_seconds'].max()
  5. #print(pop_music_max_total_play)
  6.  
  7. pop_music_max_info = pop_music[pop_music['total_play_seconds'] == pop_music_max_total_play]
  8. #print(pop_music_max_info)
  9.  
  10. pop_music_min_total_play = pop_music[pop_music['total_play_seconds'] == pop_music['total_play_seconds'].max()]
  11. print(pop_music_min_total_play)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top