BaşlayınÜcretsiz Başlayın

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

Bu egzersiz

Python for Spreadsheet Users

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

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

# Look at the result
print(movies)
Kodu Düzenle ve Çalıştır