I have a series with 5 value
0 A
1 A
2 B
3 C
4 E
And I have a dataframe A with n columns.
Is there any way I can make a dataframe that dimension is (5*n). All columns is made up by the series and column names are the same as dataframe A?
For example:
dataframe A looks like
col1 col2
0 1 3
1 2 2
2 2 2
3 2 6
4 4 2
and new dataframe looks like
col1 col2
0 A A
1 A A
2 B B
3 C C
4 E E
The best solution I came up with for now is to make a copy of A and use loop to change values of new dataframe column by column.
thanks for any kind of help!