*행의 index로 특정 행 추출하기

>>>import pd
>>>import pandas
>>>df = pd.DataFrame(np.random.rand(5,3),index=range(0,10,2),columns=list('ABC'))
 
          A         B         C
0  0.454739  0.865752  0.156482
2  0.415199  0.674212  0.100479
4  0.946274  0.202595  0.632438
6  0.197895  0.080003  0.234574
8  0.389200  0.430107  0.548751
 
>>> df.iloc[[2]]
          A         B         C
4  0.946274  0.202595  0.632438
 
>>> df.iloc[[2,4]]
          A         B         C
4  0.946274  0.202595  0.632438
8  0.389200  0.430107  0.548751