Hi !
I created a first Python code to try to organise datas for a table. It works well so I am able to organize datas in the right order.
The pb is that I need to split this big table in sub tables grouped by the value DOSSIER and i don’t know how to do that !
If someone gets an idea !
Many thx
Francis
import datetime
dates_obj = j]
for i in input_datad'dates'].split(','):
dates_obj.append(datetime.datetime.strptime(i, "%d/%m/%Y").date())
event_list = list(zip(input_datad'events'].split(','),input_datad'dossiers'].split(','),dates_obj,input_datad'descriptions'].split(','),input_datad'qte'].split(','),input_datad'avocats'].split(','),input_datad'types'].split(',')))
sorted_events = sorted(event_list, key=lambda item: (itemi1],itemi2]))
out = t]
for e in sorted_events:
out.append({'event': e'0],'dossier': e'1],'date': e'2].strftime("%d/%m/%Y"),'types': e'6],'description': e'3],'qte': e'4],'avocats': e'5]})
return {
"events": out,
}