将字典转为dataframe
使用案例:
test_dic = {'subject':[],'time':[],'name':[]}
test_dic['subject'].append('play')
test_dic['time'].append('2023:10:10')
test_dic['name'].append('jack')
test_dataframe = pd.DataFrame.from_dict(test_dic)
结果显示:
使用案例:
test_dic = {'subject':[],'time':[],'name':[]}
test_dic['subject'].append('play')
test_dic['time'].append('2023:10:10')
test_dic['name'].append('jack')
test_dataframe = pd.DataFrame.from_dict(test_dic)
结果显示: