This is probably something trivial but I can't seem to find a decent solution and/or I'm searching for the wrong thing.
When I call this:
validation_data = validation.map(tuple)
I get the following output:
[(61.0, 3864.0), (61.0, 3889.0)]
I actually want the result to be Integers, so I changed the code to this instead:
validation_data = validation.map(lambda xs: [int(x) for x in xs])
But now the format of the output changes (notice it's now square brackets like an array instead of smooth brackets)
[[61, 3864], [61, 3889]]
I'm not sure what happens here. Why does the output format change? And how do I keep the original [()] format instead of [[]]?
validation?<>.