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

Comparing DataFrames with equals

Time to make the team's pipeline testable. The function digital_format_totals() aggregates digital checkouts by format. To verify it, the team built a tiny TEST_INPUT and a proposed_expected DataFrame they think the function should produce. Now you need a quick check to see whether the two DataFrames match.

The DataFrames actual (from running the function) and proposed_expected are preloaded and printed for you so you can compare them by eye too.

Bu egzersiz, kursun bir parçasıdır

Scaling and Optimizing Data Pipelines with Polars

Kursa Göz Atın

Egzersiz talimatları

  • Compare actual against proposed_expected and store the boolean result in matches.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Compare actual against the proposed expected
matches = actual.____(proposed_expected)
print(matches)
Kodu Düzenle ve Çalıştır