dfList = df.values.tolist()
return jsonify(dfList)
I have this as result, it's actualy removing the variable names of the DataFrame and replacing them with integers
-0: [
0: "Les abeilles sont dehors",
1: "ObservationNature",
2: 0.6790075732725341,
3: [],
],
-1:[
0: "elle sont allée chercher le miel à coté des fleurs du rucher",
1: "ObservationNature",
2: 0.4250480624587389,
3: [],
]
my result should look like this, with the varibales that are in the DataFrame
-0: [
"texte": "Les abeilles sont dehors",
"type": "ObservationNature",
"nluScore": 0.6790075732725341,
"ruche": [],
],
-1:[
"texte": "elle sont allée chercher le miel à coté des fleurs du rucher",
"type": "ObservationNature",
"nluScore": 0.4250480624587389,
"ruche": [],
],