Error
KeyError Traceback (most recent call last)
Basha
2022. 10. 11. 18:20
728x90
KeyError: "None of [Index(['Survived'], dtype='object')] are in the [columns]"
어쩐지 데이터 값들이 모두 이상하더라니!!!!!!! key 가 없더라니!!!!!!!
train = pd.read_csv('/content/drive/MyDrive/tdata/train.csv')
test = pd.read_csv('/content/drive/MyDrive/tdata/test.csv')
코드를
train = pd.read_csv('/content/drive/MyDrive/tdata/test.csv')
test = pd.read_csv('/content/drive/MyDrive/tdata/train.csv')
경로 설정 잘못 해줌...ㅎ 바부다 바부..... 어쩐지 아무리 해도 이상하더라고... csv 파일에 있지도 않은걸 키로 잡을 리가 없는데...!!!!
728x90
반응형