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:


And get this message:


Can anyone help?