How do I remove Date, Hours and Seconds from a pandas datetime, so that I'm left with only the minutes? I have a table of dates in the format:
Date
2015-04-18 23:33:58
2015-04-19 14:32:08
2015-04-20 18:42:44
2015-04-20 21:41:19
and I want:
Date
33
32
42
41
The code I'm trying to use is:
fiveMin['Date'] = fiveMin['Date'] - pd.Timedelta(fiveMin['Date'], unit='s')
to remove the seconds, however I'm getting the error:
Value must be Timedelta, string, integer, float, timedelta or convertible