Inizia subitoInizia gratis

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

Questo esercizio fa parte del corso

Python for Spreadsheet Users

Visualizza corso

Istruzioni dell'esercizio

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

esercizio interattivo pratico

Prova questo esercizio completando questo codice di esempio.

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

# Look at the result
print(movies)
Modifica ed esegui il codice