iloc1 [Pandas] DataFrame 함수 - 데이터 조회 [데이터 조회 함수] 1) head/tail 2) 인덱싱 - iat(), at() 3) 슬라이싱 - iloc(), loc() 1) head,tail print(df3.head(10)) print("*"*50) # head()는 0~5행 조회하는 것과 같음. # head(),tail() 기본값으로 5행을 보여줌 print(df3[:5]) print("*"*50) print(df3.tail(10)) print("*"*50) # shape() 행과 열의 개수를 알려줌 print(df3.shape) #shape는 튜플로 출력 ''' # print(df3.head(10)) total_bill tip sex smoker day time size 0 16.99 1.01 Female No Sun Dinner 2.0 1.. 2020. 7. 21. 이전 1 다음