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

Crosstabulation

Students and alumni mainly from the University of Texas were surveyed to see their stance on the topic of female empowerment. Let's get an overall picture of the relationship between degree received and gender.

pandas has been imported for you as pd and the survey as we_survey.

Bu egzersiz

Analyzing Survey Data in Python

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

Egzersiz talimatları

  • Create a cross-tabulation of Gender and Education showing the frequency distribution between both variables.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Create a cross-tabulation of "Gender" and "Education"
cross_tabulation = ____.____(we_survey.____,
                             we_survey.____, 
                             margins = True)
print(cross_tabulation)
Kodu Düzenle ve Çalıştır