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

Analyze variables with .corr()

A survey, birth_survey, was conducted involving 17 infants to investigate the association between gestational age at birth measured in weeks, birth_age, and birth weight measured in grams, birth_weight.

In this exercise, you will calculate the relationship between birth age and birth weight.

pandas has been loaded as pd for you.

Bu egzersiz

Analyzing Survey Data in Python

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

Egzersiz talimatları

  • Use a function to find the correlation between variables birth_age and birth_weight in the survey.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Find the correlation between variables present in the survey
cor = birth_survey.____.____(birth_survey.____)
print(cor)
Kodu Düzenle ve Çalıştır