MulaiMulai sekarang secara gratis

From a list of dictionaries

It's common to end up with a list of dictionaries that contain data you want to analyze. This pattern is especially common when querying data from a database like MySQL, MongoDB, or a RESTful API. Each dictionary is a single record, containing a similar set of keys, which become the columns of the DataFrame.

In this exercise, you will take a list of data, age_records, where each record is a dictionary (that's 4219 dictionaries), and convert it into a pandas DataFrame.

Latihan ini adalah bagian dari kursus

Python for MATLAB Users

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# View the data type of age_records
print(____(age_records))
Edit dan Jalankan Kode