LoslegenKostenlos loslegen

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.

Diese Übung ist Teil des Kurses

Python for MATLAB Users

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# View the data type of age_records
print(____(age_records))
Code bearbeiten und ausführen