I have a list of dictionaries like this:
[{\'points\': 50, \'time\': \'5:00\', \'year\': 2010},
{\'points\': 25, \'time\': \'6:00\', \'month\': \"february\"
For converting a list of dictionaries to a pandas DataFrame, you can use "append":
We have a dictionary called dic
and dic has 30 list items (list1
, list2
,…, list30
)
total_df
)total_df
with list1
total_df
total_df=list1
nums=Series(np.arange(start=2, stop=31))
for num in nums:
total_df=total_df.append(dic['list'+str(num)])