Convert list of dictionaries to a pandas DataFrame

前端 未结 7 2334
清酒与你
清酒与你 2020-11-22 01:22

I have a list of dictionaries like this:

[{\'points\': 50, \'time\': \'5:00\', \'year\': 2010}, 
{\'points\': 25, \'time\': \'6:00\', \'month\': \"february\"         


        
7条回答
  •  醉梦人生
    2020-11-22 01:25

    In pandas 16.2, I had to do pd.DataFrame.from_records(d) to get this to work.

提交回复
热议问题