MulaiMulai sekarang secara gratis

Don't dump the bird

You want to read the birds data into a DataFrame like you did in the previous exercise, but this time, you would like to try a different approach.

You would like to have a code that you can reuse in this situations, so you want to establish the fastest strategy to convert it into a usable DataFrame. You think that working with the json format could speed up the process.

The birds DataFrame is available for you.

Latihan ini adalah bagian dari kursus

Reshaping Data with pandas

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Apply json.loads to the bird_facts column and transform it to a list
birds_facts = ____[____].____(____).____

# Print birds_facts
print(birds_facts)
Edit dan Jalankan Kode