Ah ok. Thanks for letting me know.
It’s hard to tell what the data is actually being transformed into from your example.
But if the tuple notation wasn’t working, then it’s like when you converted the dataLines in an array of arrays each cell in the csv is converted to a string.
For example Array(Array("c2", "102")...)
Notice the 102 is a String
, not an Int
Which also explains why the .toInt
method worked.
Glad you found a solution!