I have a data for which I need to create a frequency bar plot.The data contains 2 fields . One is timestamp and other some data. I need to use this timestamp and find if this is in one range of time then add one to it. Otherwise add it to another. I am not able to understand how to do without using loops.
sample data
thread_count timestamp
1 2014-01-27 16:33:39
2 2014-01-27 16:34:50
3 2014-01-27 16:35:19
2 2014-01-27 16:36:32
1 2014-01-27 16:37:11
1 2014-01-27 16:39:00
Now i want to aggregate with time range 16:34 - 16:36 and 16:37 : 16:40. how to do this