Notice
Recent Posts
Recent Comments
Link
보조기억장치
FutureWarning: Calling int on a single element Series is deprecated and will raise a TypeError in the future. Use int(ser.iloc[0]) instead 본문
Any
FutureWarning: Calling int on a single element Series is deprecated and will raise a TypeError in the future. Use int(ser.iloc[0]) instead
캐세이 2024. 1. 19. 23:43Pandas DataFrame iloc Property
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
www.w3schools.com
정의 및 사용법
속성 iloc은 지정된 인덱스의 값을 가져오거나 설정합니다.
행과 열을 모두 인덱스로 지정합니다.
두 개 이상의 행에 액세스하려면 이중 대괄호를 사용하고 쉼표로 구분하여 인덱스를 지정합니다.
df.iloc[[0, 2]]
다른 목록에 해당 인덱스를 포함하여 열을 지정합니다.
df.iloc[[0, 2], [0, 1]]
콜론으로 구분된 from 및 to 인덱스를 사용하여 DataFrame의 조각을 지정할 수도 있습니다 .
df.iloc[0:2]
'Any' 카테고리의 다른 글
뱃부 아프리카 사파리 버스 시간표 (0) | 2024.04.27 |
---|---|
Python PDF 읽기 (0) | 2024.03.14 |
VSCODE Delete `␍`eslintprettier/prettier (0) | 2023.12.09 |
PowerShell 에서 tsc 실행시 보안오류 발생 조치방법 (0) | 2023.08.07 |
ADGUARD로 네이버 카페 대문광고 제거하기 (0) | 2023.08.06 |