Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created September 22, 2019 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dipanjanS/38838c4379d952595c962ad793b8eb05 to your computer and use it in GitHub Desktop.
Save dipanjanS/38838c4379d952595c962ad793b8eb05 to your computer and use it in GitHub Desktop.
watched = np.array(popsong_df['listen_count'])
watched[watched >= 1] = 1
popsong_df['watched'] = watched
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment