My bad

dataset_three=(dataset_one|dataset_two).sort(lambda row:
row['sortfilename'])

On Jun 14, 9:52 am, Giuseppe Luca Scrofani <[email protected]>
wrote:
> I've tried, I get this when trying to add dataset_one and two:
>
> TypeError: unsupported operand type(s) for +: 'Rows' and 'Rows'
>
> I "feel" there is something to do before adding, like convert to
> another datatype, but my incompetence limits me...
>
> (I hope I dont stretch my luck with all this question...)
>
> > You have to merge them in a list and sort them at the Python/web2py
> > level.
>
> > You may be able to do
>
> > dataset_three=(dataset_one+dataset_two).sort(lambda row:
> > row['sortfilename'])
>
> > assuming both tables have the same sortfiledname and have similar
> > record structures. Try and let us know.

Reply via email to