Hello everyone!
Suppose that I have a dataset that looks like this:
Date | Hour | Number |
---|---|---|
2017-01-01 | 1 | 5724.0 |
2017-01-01 | 2 | 5585.7 |
2017-01-01 | 3 | 5456.7 |
2017-01-01 | 4 | 5358.3 |
2017-01-01 | 5 | 5350.0 |
2017-01-01 | 6 | 5265.7 |
2017-01-01 | 7 | 5287.0 |
2017-01-01 | 8 | 5379.0 |
2017-01-01 | 9 | 5381.0 |
2017-01-01 | 10 | 5510.0 |
2017-01-01 | 11 | 5542.7 |
2017-01-01 | 12 | 5545.7 |
2017-01-01 | 13 | 5532.0 |
2017-01-01 | 14 | 5505.0 |
2017-01-01 | 15 | 5541.0 |
2017-01-01 | 16 | 5662.0 |
2017-01-01 | 17 | 5964.0 |
2017-01-01 | 18 | 6390.3 |
2017-01-01 | 19 | 6345.7 |
2017-01-01 | 20 | 6233.3 |
2017-01-01 | 21 | 6258.7 |
2017-01-01 | 22 | 6057.3 |
2017-01-01 | 23 | 5802.0 |
2017-01-01 | 24 | 5598.3 |
2017-01-02 | 1 | 5399.3 |
2017-01-02 | 2 | 5399.3 |
. | . | . |
. | . | . |
2017-12-31 | 23 | 8499.3 |
2017-12-31 | 24 | 8689.7 |
I want to combine the first two "Date" and "Hour" columns to make it look like this (or something similar):
Date & Hour | Number |
---|---|
2017-01-01: 01 | 5724.0 |
2017-01-01: 02 | 5585.7 |
2017-01-01: 03 | 5456.7 |
2017-01-01: 04 | 5358.3 |
2017-01-01: 05 | 5350.0 |
. | . |
. | . |
2017-01-01: 23 | 5802.0 |
2017-01-01: 24 | 5598.3 |
Anybody know how to do this? Any help would be much appreciated!