기계학습/캐글1 타이타닉 프로젝트 (1) - 자료 분석 first, load the csv file from the kaggle+ Code+ MarkdownIn[1]:import pandas as pd_train = pd.read_csv('../input/titanic/train.csv')_test = pd.read_csv('../input/titanic/test.csv')train = _train.copy()test = _test.copy()+ Code+ Markdownto find out if there is NaN values in the Dataframe, I use df.isnull().sum() function+ Code+ MarkdownIn[2]:train.isnull().sum()Out[2]:PassengerId 0 Survived 0 Pc.. 2020. 3. 12. 이전 1 다음