displaying one row of pd dataframe code example
Example 1: pandas dataframe show one row
df.iloc[0,:]
Example 2: dataframe of one row
In [395]: df = pd.DataFrame([[1,1.23,'Hello']], columns=list('ABC'))
In [396]: df
Out[396]:
A B C
0 1 1.23 Hello