>>> import pandas as pd
>>> temp = {'a' : 1, 'b' : 2}
>>> pd.DataFrame([temp])
a b
0 1 2
字典dict转换成DataFrame
最新推荐文章于 2024-05-12 12:09:03 发布
>>> import pandas as pd
>>> temp = {'a' : 1, 'b' : 2}
>>> pd.DataFrame([temp])
a b
0 1 2