I have a row and I want to build a dataframe based on this row. For example, I have a row with 5 value. I want to build a df with 4 rows and 5 column. here is the desired output for me:
df = pd.DataFrame()
df['a']=[1]
df['b']=[2]
df['c']=[3]
df['d']=[1]
df['e']=[2]
Output:
a b c d e
0 1 2 3 1 2
1 1 2 3 1 2
2 1 2 3 1 2
3 1 2 3 1 2
Can you help me with it?