Really new to python, and trying to solve what might be really simple for you guys but would help me wrap my head around this.
I have the following data.
Date Time Delta
01/02/2020 9:30:00 AM .05
01/02/2020 9:30:01 AM .029
01/02/2020 9:30:02 AM .033
...
I'm trying to get that into this form
Date 9:30:00 AM 9:30:01: AM 9:30:02 AM
01/02/2020 .05 .029 .033
...
I've tried:
df = pd.read_csv('C:\\Data\\test.csv')
newDF = df[['Date', 'Time', 'Delta']]
res = newDF.pivot(index='Date', columns='Time', values='Delta')
But that doesn't work at all. In-fact gives an error ValueError: Index contains duplicate entries, cannot reshape.
Is this possible only with Pandas?