1 row dataframe code example
Example 1: 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
Example 2: iloc and loc
iloc - default indexes (system generated)
loc - table indexes or we manually given indexes