프로그래밍/PYTHON
[Python] 딕셔너리(dic)를 생성하고 데이터프레임(df)으로 변환하는 법
테리베리
2021. 10. 1. 16:43
728x90
반응형
생성한 딕셔너리를 데이터프레임으로 변환하는 법
learning_data_dic = { '공사분류' : [''],'동광유무' : [''],'공사명' : ['아직x'],
'input1' : [''],'input2' : [''],'input3' : [''],'input4' : [''],'input5' : [''],'input6' : [''],'input7' : [''],'input8' : [''],'input9' : [''],'input10' : [''],
'input11' : [''],'input12' : [''],'input13' : [''],'input14' : [''],'input15' : [''],'input16' : [''],'input17' : [''],'input18' : [''],'input19' : [''],'input20' : [''],
'input21' : [''],'input22' : [''],'input23' : [''],'input24' : [''],'input25' : [''],'input26' : [''],'input27' : [''],'input28' : [''],'input29' : [''],'input30' : [''],
'input31' : [''],'input32' : [''],'input33' : [''],'input34' : [''],'input35' : [''],'input36' : [''],'input37' : [''],'input38' : [''],'input39' : [''],'input40' : [''],
'input41' : [''],'input42' : [''],'input43' : [''],'input44' : [''],'input45' : [''],'input46' : [''],'input47' : [''],'input48' : [''],'input49' : [''],'input50' : [''],
'input51' : [''],'input52' : [''],'input53' : [''],'input54' : [''],'input55' : [''],'input56' : [''],'input57' : [''],'input58' : [''],'input59' : [''],'input60' : [''],
'input61' : [''],'input62' : [''],'input63' : [''],'input64' : [''],'input65' : [''],'input66' : [''],'input67' : [''],'input68' : [''],'input69' : [''],'input70' : [''],
'input71' : [''],'input72' : [''],'input73' : [''],'input74' : [''],'input75' : [''],'input76' : [''],'input77' : [''],'input78' : [''],'input79' : [''],'input80' : [''],
'input81' : [''],'input82' : [''],'input83' : [''],'input84' : [''],'input85' : [''],'input86' : [''],'input87' : [''],'input88' : [''],'input89' : [''],'input90' : [''],
'input91' : [''],'input92' : [''],'input93' : [''],'input94' : [''],'input95' : [''],'input96' : [''],'input97' : [''],'input98' : [''],'input99' : [''],'input100' : [''],
'input101' : [''],'input102' : [''],'input103' : [''],'input104' : [''],'input105' : [''],'input106' : [''],'input107' : [''],'input108' : [''],'input109' : [''],'input110' : [''],
}
learning_dataframe = pd.DataFrame(learning_data_dic) ## 데이터
728x90
반응형