Interpret data from a csv file

Hi,
hope you are all good! I’m using CSVFileReader which gives me this:

~list=[ [ 720575940641583056, [386280 257312 188240], 77268798721395109 ], etc…

Im interested in the middle part which i can easily pick out by:

~list[0][1]

Now i get [386280 257312 188240] which is not interpreted data i guess. If i “.do” this i get the thing broken up and i have the separated parts of it. What i really would love to have here would be something like [386280, 257312, 188240] where […] is a List and the contents are comma separated Integers. Is there a standart procedure im missing?.

Thanks for any advice & have a good day!

flo.

I suppose [386280 257312 188240] is a string when you get it ?

If all datas are the same, you can replace blank spaces with commas, then interpret the string to ‘convert’ it as an array:

"[386280 257312 188240]".replace(" ", ",").interpret

1 Like