The objective is to append a string at the first row of a df.
The snippet below answer the objective
import pandas as pd
df = pd.DataFrame({'A': [11, 21, 31],
'B': [12, 22, 32],
'C': [13, 23, 33]},
index=['ONE', 'TWO', 'THREE'])
df=df.astype ( str )
all_columns = list ( df )
df_new=pd.DataFrame(['test']*len(all_columns)).transpose()
df_new.columns=all_columns
df_new = df_new.astype ( str )
df33= pd.concat ( [df_new, df], axis=0 )
But I wonder whether there is more compact way that the proposed solution.