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

Merge it all

Time to keep working with the obesity project! You will analyze the mean obesity percentage in different countries, but this time, the obesity DataFrame has a new column named bounds. It contains the minimum and maximum values you can find in different parts of the same country.

You notice that these values are given in a list, so you decide that you need to transform that column. You would like to have each element in a new row.

The DataFrame obesity is available in your session. Make sure to examine it in the console!

Bu egzersiz

Reshaping Data with pandas

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Explode the values of bounds to a separate row
obesity_bounds = ____[____].____

# Print obesity_bounds
print(obesity_bounds)
Kodu Düzenle ve Çalıştır