반응형
iloc (Integer Location)
print(iphone_df.iloc[2,4]) # row=2, column=4
// No
print(iphone_df.iloc[[1,3], [1,4]]) # row=1,3 / column=1,4
print(iphone_df.iloc[3:, 1:4]) # row=3~ / column 1,2,3
반응형
'Python > Pandas' 카테고리의 다른 글
[Pandas] DataFrame 값 쓰기 및 삭제 (0) | 2024.01.01 |
---|---|
[Pandas] DataFrame 값 쓰기 (0) | 2023.12.31 |
[Pandas] DataFrame 인덱싱 (0) | 2023.12.29 |
[Pandas] csv 데이터 불러오기 (2) | 2023.12.27 |
[Pandas] DataFrame이란? (0) | 2023.12.26 |