After I have loaded all data I needed and did the mapping, I used the following code to extract n-elements using the take()
function and get the data in rdd format.
print(data.take(10))
But if I want to take all data (it could be thousands or more rows) what code shall I write to extract all data?
Thank you in advance.