Get startedGet started for free

.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!

This exercise is part of the course

Python for Spreadsheet Users

View Course

Exercise instructions

  • Use the right method for removing whitespace on the movie_title column.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Strip whitespace from the movie_title column
movies['movie_title'] = movies['movie_title'].____

# Look at the result
print(movies)
Edit and Run Code