I want to create pandas udf function for Pyspark in which I am using train_test_split function and returns a dataframe
pandas udf
This is what I have done.