The example provided is almost ok, except that it enters the data manually.
This is why the code provided by Anjali is much closer to my need, but it doesn’t work, maybe there is a syntax error.
I need to split automatically the data_points into dataPoints1 and dataPoints2.
Thank you for your help! I really appreciate it!