Pandas > Select row by index number

Name
Code
Output
df_index = [101,202,303,404,505]
dataframe = pandas.DataFrame(numpy.random.randint(0,100,size=(5, 3)), columns=['C1','C2','C3'],index = df_index)
print ("dataframe")
print (dataframe)
print ("row 3")
print (dataframe.iloc[2])
dataframe
     C1  C2  C3
101  26  73  73
202  14  68  61
303   6   1   1
404  40  83   1
505  49  84  31
row 2
C1    6
C2    1
C3    1
Name: 303, dtype: int64