Python "Expected Array[float], got list" issue

I think you need to create an array of floats from your list. Similar to this:

Look at the last third of this code. There will you see that an array of objects is created from a list. You need to create an array of floats.