I am working with Python Pandas and I have a following table that consists of many rows:
Date X X Date Y Y
0 2014-03-31- 0.390- 2014-04-24- 1.80
1 2014-04-01- 0.385- 2014-04-25- 1.75
What I want to do is for every index(row)
, take the value of x
and y
from every column in the row and make new rows from them and have something like this:
0 2014-03-31 0.390
1 2014-04-24 1.80
The reason why I am trying to do this is that I want to interpolate between those 2 dates
I tried different merging, remerging and playing with the dataframe
but it didn't really help