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

Checking for duplicate keys

The team is debating whether or not two datasets can be joined. The question comes down to whether or not each data frame has a unique set of one or more key columns.

You'll be going back to two data frames from before, game_matchups and punts. In an earlier exercise you determined there was a one-to-many relationship between the data frames.

Bu egzersiz

Pandas Joins for Spreadsheet Users

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# View first 5 rows of game_matchups and check key columns
print(____.head())
____('Duplicate keys:', game_matchups.____('GameKey').sum())
Kodu Düzenle ve Çalıştır