Ups, my mistake. Here is you table in csv format index, timestamp, agg_rev, k 0,2010-03-23,64,2 1,2011-03-11,52,2 2,2012-04-02,77,3 3,20130320,120,4 4,2014/04/01,60,3 5,2015-02-28,61,2 6,2016-03-09,72,2