-
-
Save amankharwal/dac09a47d3ab37080aa957b5328d6b6d 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['Rotten Tomatoes'] = tv_shows['Rotten Tomatoes'].fillna('0%') | |
tv_shows['Rotten Tomatoes'] = tv_shows['Rotten Tomatoes'].apply(lambda x : x.rstrip('%')) | |
tv_shows['Rotten Tomatoes'] = pd.to_numeric(tv_shows['Rotten Tomatoes']) | |
tv_shows['IMDb'] = tv_shows['IMDb'].fillna(0) | |
tv_shows['IMDb'] = tv_shows['IMDb']*10 | |
tv_shows['IMDb'] = tv_shows['IMDb'].astype('int') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment