Pandas > Select row

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 with label 303")
print (dataframe.loc[303])
dataframe
     C1  C2  C3
101  88  84  54
202  15  99  10
303   6  57  57
404  23  51  51
505  92  12  36
row 3 with label 303
C1     6
C2    57
C3    57
Name: 303, dtype: int64