I have some time series data in a pandas data frame:
prices.head()
Time A B C D
0 2012-01-02 08:00:30 NaN 47.1650 31.51 58.16
1 2012-01-02 08:01:00 NaN 47.2400 31.48 58.19
2 2012-01-02 08:01:30 NaN 47.2750 31.46 58.21
3 2012-01-02 08:02:00 NaN 47.3250 31.40 58.17
4 2012-01-02 08:02:30 NaN 47.3325 31.42 58.07
I would like to create 4 new columns containing the closing price for each day. How can I do that?
The samples associated to day 1 should have the closing price of day 1 and so on ...