.str.strip()
There is nothing scarier than spaces you can't see! Let's keep working with the movies DataFrame and make sure there's no creepy whitespace around our movie titles!
Deze oefening maakt deel uit van de cursus
Python for Spreadsheet Users
Oefeninstructies
- Use the right method for removing whitespace on the
movie_titlecolumn.
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# Strip whitespace from the movie_title column
movies['movie_title'] = movies['movie_title'].____
# Look at the result
print(movies)