This is the Sklearn version function to split data
sklearn.model_selection.train_test_split(*arrays, test_size=None, train_size=None, random_state=None, shuffle=True, stratify=None)
I need the Sklearn train_test_split() equivalent in PySpark which can be given arguments to stratify on the target, has option whether to shuffle the data or not and things like that. The train_test_split() is a fantastic handy function and it would be best to have its closest possible implementation. randomSplit() function doesn't match.