본 내용은 인프런 강의 <데이터 분석을 위한 판다스>를 수강하며 중요한 점을 정리한 글입니다.
판다스 튜토리얼
https://pandas.pydata.org/pandas-docs/stable/getting_started/intro_tutorials/index.html
.loc[] : 행과 열 둘 다 선택할 때
over_35_names = titanic.loc[titanic['Age'] > 35, 'Name'] # 앞에가 행, 뒤에가 열 선택
over_35_names
titanic.iloc[0, 0]
iloc[] : 기존의 데이터 선택 및 수정할 때
titanic.iloc[0, ]
titanic.iloc[0:9, 0:3]
titanic.iloc[0:3, 3] = 'anonymous'