Is there a way to select a random text value from following python list using pyspark:-
data_list = ["abc", "xyz", "pqr"]
I know that I can implement a pyspark UDF which will return a random text value from python list using random.choice() python function but do we have an alternative function in pyspark itself to do the same?
The main reason to do the above is to create a huge dataset of 1000 rows by randomly selecting elements from the python data_list as mentioned above.