I have this data:
datetime stock
2010-01-01 4
2010-01-02 7
2010-01-03 2
2010-01-04 9
And I want to make this output:
datetime stock val
2010-01-01 4 stock
2010-01-02 7 stock
2010-01-03 2 stock
2010-01-04 9 stock
I tried to melt the data but it didn't work. Any suggestions?