I have time in format : pandas._libs.tslibs.timestamps.Timestamp
,i need to pick every minutes in this timeSeries
2011-08-01 00:00:14
2011-08-01 00:00:17
2011-08-01 00:00:20
2011-08-01 00:00:23
2011-08-01 00:00:26
2011-08-01 00:00:29
2011-08-01 00:00:32
2011-08-01 00:00:35
2011-08-01 00:00:38
2011-08-01 00:00:41
2011-08-01 00:00:44
2011-08-01 00:01:00
2011-08-01 00:01:03
2011-08-01 00:01:06
2011-08-01 00:01:09
2011-08-01 00:01:12
2011-08-01 00:02:03
2011-08-01 00:02:06
2011-08-01 00:01:15
...
...
so below is the code i have tried so far:
def mins():
for i in range(len(df1['Time'])):
labels = df1['Time'][i].strftime('%M')
print (labels)
return (labels)
so if i call the function, only the last minute is returned as an output, it actually shows the rest of minutes but not as an 'output' so i cannot be able to call that later, i have tried so many things (i.e appending labels in a lst) but nothing worked, may you please help people.