Is there a way to select a random text value from following 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 list using random.choice() python function but do we have an alternative function in pyspark itself to do the same?
Aucun commentaire:
Enregistrer un commentaire