Terry Very Good

[Python] 리스트(list) 한 줄을 데이터프레임(df) 마지막 줄에 추가하는 법(df.loc[len(df)] = list) 본문

프로그래밍/PYTHON

[Python] 리스트(list) 한 줄을 데이터프레임(df) 마지막 줄에 추가하는 법(df.loc[len(df)] = list)

테리베리 2021. 10. 1. 16:43
728x90
반응형

df.loc[len(df)] = list: 리스트(list) 한 줄을 데이터프레임(df) 마지막 줄에 추가하는 법

input_list = ['설비이전','동광유무','공사명','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','']
learning_dataframe.loc[len(learning_dataframe)] = input_list

 

728x90
반응형