Python/Pandas
판다스 pandas (3) - Index 객체, reset_index
Index 객체¶ In [5]: import pandas as pd import numpy as np titanic_df = pd.read_csv('./titanic_train.csv') titanic_df Out[5]: PassengerId Survived Pclass Name Sex Age SibSp Parch Ticket Fare Cabin Embarked 0 1 0 3 Braund, Mr. Owen Harris male 22.0 1 0 A/5 21171 7.2500 NaN S 1 2 1 1 Cumings, Mrs. John Bradley (Florence Briggs Th... female 38.0 1 0 PC 17599 71.2833 C85 C 2 3 1 3 Heikkinen, Miss. Lai..