1๐
I would not do that, since that would mean that you lose context, it makes it unclear what the first, second, etc. items are.
If you really want to do this, you can post-process the data with:
[
[datum['pnl'], datum['date'].day, datum['date'].month, datum['date'].year]
for datum in my_list
]
with my_list
the list you process.
Typically a serializer is used to convert data to a JSON blob and then pass it for example to some JavaScript.
Source:stackexchange.com