Re: Group by interval time

2015-02-12 Thread charles . sartori
Thank you Peter, I was doing wrong at get_key function... Thnak you so much! -- https://mail.python.org/mailman/listinfo/python-list

Re: Group by interval time

2015-02-12 Thread Peter Otten
charles.sart...@gmail.com wrote: > Hello there! > > I`m trying to group by a list of Row() objects in 12days interval and > sum(). values. Here is an example of the list > > [Row(time=datetime.datetime(2013, 1, 1, 0, 0), sum=4676557380615), > [Row(time=datetime.datetime(2013, 1, 2, 0, 0), sum=65

Re: Group by interval time

2015-02-12 Thread alister
On Thu, 12 Feb 2015 04:34:03 -0800, charles.sartori wrote: > Hello there! > > I`m trying to group by a list of Row() objects in 12days interval and > sum(). values. Here is an example of the list > > [Row(time=datetime.datetime(2013, 1, 1, 0, 0), sum=4676557380615), > Row(time=datetime.datetime(

Re: Group by interval time

2015-02-12 Thread MRAB
On 2015-02-12 12:34, charles.sart...@gmail.com wrote: Hello there! I`m trying to group by a list of Row() objects in 12days interval and sum(). values. Here is an example of the list [Row(time=datetime.datetime(2013, 1, 1, 0, 0), sum=4676557380615), Row(time=datetime.datetime(2013, 1, 2, 0, 0