October 2019
Beginner to intermediate
674 pages
16h 43m
English
A list of JSON objects can be converted into a DataFrame (much like a dictionary can). The records element we created previously is a list of JSONs (we can check this by using records[0:3] or type(records)):
df=pd.DataFrame(records) df.head() df['tz'].value_counts()
In the last line, we are trying to find the count of different time zones contained in the 'tz' column.
Read now
Unlock full access