Created
May 31, 2022 17:19
-
-
Save rkdgusrn1212/b8f4d472818fdd1bbd0df2076701cf39 to your computer and use it in GitHub Desktop.
Drop Categorical Variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
#data : 전처리할 DataFrame | |
preproccessed_data = data.select_dtypes(exclude=['object'])#object 타입을 제외한 DataFrame을 생성해 반환, 타입은 object-float64-int64가 있다 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment