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

Narrowing the list of suspects

In Chapter 1, we found a list of people whose cars matched the description of the one that kidnapped Bayes:

  • Fred Frequentist
  • Ronald Aylmer Fisher
  • Gertrude Cox
  • Kirstine Smith

We'd like to narrow this list down, so we obtained credit card records for each suspect. We'd like to know if any of them recently purchased dog treats to use in the kidnapping. If they did, they would have visited 'Pet Paradise'.

The credit records have been loaded into a DataFrame called credit_records.

Bu egzersiz

Introduction to Data Science in Python

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Select purchases from 'Pet Paradise'
purchase = ____[____.____ ____ 'Pet Paradise']

# Display
print(purchase)
Kodu Düzenle ve Çalıştır