-
-
Save amankharwal/32dc183b12724989e9061c002290ae5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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