반응형
출처:Spaceship Titanic with CatBoost (~81%)
https://www.kaggle.com/code/packchanwoo/spaceship-titanic-with-catboost-81/edit
데이터 받기
train = pd.read_csv('/kaggle/input/spaceship-titanic/train.csv')
test = pd.read_csv('/kaggle/input/spaceship-titanic/test.csv')
cabin이라는 컬럼을 deck num side로 구분해주는 코드임
train[['Deck','Num', 'Side']] = train['Cabin'].str.split('/', expand = True)
반응형
'캐글 코드' 카테고리의 다른 글
lstm을 통한 개채명 인식 (0) | 2024.04.22 |
---|---|
캐글코리아 Spooky NLP and Topic Modelling tutorial (0) | 2024.03.05 |
캐글 자전거 수요예측 (0) | 2024.02.22 |
캐글 SMS Spam Collection Dataset 2탄 (0) | 2024.01.31 |
캐글 SMS Spam Collection Dataset 1탄 (0) | 2024.01.31 |