kmeans algorithm in node red

Hello! I am creating a flow which gets data from a file (i used an http request for that) and then i want to create a function with the kmeans algorithm. My flow is like that:

I use that function:

image.png

And get this message:

Screenshot_2.png

Can anyone help?