Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Reshaping Data with pandas

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

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

# Print birds_facts
print(birds_facts)
Code bewerken en uitvoeren