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

Selecting missing puppies

Let's return to our DataFrame of missing puppies, which is loaded as mpr. Let's select a few different rows to learn more about the other missing dogs.

Bu egzersiz

Introduction to Data Science in Python

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

Egzersiz talimatları

  • Select the dogs where Age is greater than 2.
  • Select the dogs whose Status is equal to Still Missing.
  • Select all dogs whose Dog Breed is not equal to Poodle.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Select the dogs where Age is greater than 2
greater_than_2 = mpr[mpr.Age ____ 2]
print(greater_than_2)

# Select the dogs whose Status is equal to Still Missing
still_missing = mpr[____ ____ ____]
print(still_missing)

# Select all dogs whose Dog Breed is not equal to Poodle
not_poodle = ____
print(not_poodle)
Kodu Düzenle ve Çalıştır