LoC
![[kaggle courses] Pandas - Indexing, Selecting & Assigning (iloc, loc)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FsJISc%2FbtrhNUBX7GG%2FAAAAAAAAAAAAAAAAAAAAANVXXgfRdpGppQ56XQXc5eG_5O7dKYkULr0uDc0-ceJI%2Fimg.jpg%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1751295599%26allow_ip%3D%26allow_referer%3D%26signature%3DsRE2tqWZ0TEXkZbEKxiVd8A8ErI%253D)
[kaggle courses] Pandas - Indexing, Selecting & Assigning (iloc, loc)
https://www.kaggle.com/residentmario/indexing-selecting-assigning 0. Python 기본 접근자 DataFrame의 각 column에 접근할 수 있는 방법은 여러가지가 있다. 그 중, 파이썬이 기본적으로 제공하는 2가지 방법에 대해서 먼저 알아보자. 첫번째 방법으로, DataFrame의 column index를 하나의 attribute로서 접근하는 방법이다. 이 방법으로 위의 DataFrame의 country column에 reviews.country 코드를 통해 접근할 수 있다. reviews.country 0 Italy 1 Portugal ... 129969 France 129970 France Name: country, Length: 129971,..