I have minute by minute trading data in Pandas that I would like to transform into a single date with specific measurements in each column. Example:
Current data:
Date | 00:01 | Stock Price
Date | 00:02 | Stock Price
.....
Date | 23:59 | Stock Price
Date +1 | 00:01 | Stock Price
Date +1 | 00:02 | Stock Price
....
Date +1 | 23:59 | Stock Price
Desired Result:
Date | Stock price @ "12:00" | Stock price @ "14:00"
Date +1 | Stock price @ "12:00" | Stock price @ "14:00"
etc.
Anyone got a clue on how to get this to work in Pandas? I tried converting it to a CSV and doing it manually with a lot of loops (I need more than 2 measurements), but it ended up getting very messy and hard to modify. Could anyone help me out or point me in the right direction? Thanks!