Hi am writing my thesis about the relationship between diversity and firm performance. I need to make a panel frame data frame.
I want my data to looks like this:
But my current dataset looks like this
Where Date 1 is the name of the column and the label is 1-1-2017 and Date 2 = 1-2-2017
Can someone please help me transform my data?
Highly appreciated, thank you in advance!
I want my data to looks like this:
| ISIN | NAME | ID | Variable 1 | Variable 2 | Variable 3 | Date | Currency |
| Company A | A | 1 | x | y | z | 1-1-2017 | $ |
| Company A | A | 1 | x | y | z | 1-2-2017 | $ |
| Company A | A | 1 | x | y | z | 1-3-2017 | $ |
| Company B | B | 2 | x | y | z | 1-1-2017 | $ |
| ISIN | Name | ID | Currency | Variable | Date 1 | Date 2 | Date 3 |
| Company A | A | 1 | $ | Variable 1 | x | x | x |
| Company A | A | 1 | $ | Variable 2 | y | y | y |
| Company A | A | 1 | $ | Variable 3 | z | z | z |
| Company B | B | 2 | $ | Variable 1 | x | x | x |
Can someone please help me transform my data?
Highly appreciated, thank you in advance!

Comment