Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/best streaming.py Secret

Created Jan 21, 2021
Embed
What would you like to do?
tv_shows_long=pd.melt(tv_shows[['Title','Netflix','Hulu','Disney+',
'Prime Video']],id_vars=['Title'],
var_name='StreamingOn', value_name='Present')
tv_shows_long = tv_shows_long[tv_shows_long['Present'] == 1]
tv_shows_long.drop(columns=['Present'],inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment