The good part about stratification is that there it is easy and in fact, there are a lot of libraries to do so.
library - Sklearn
sklearn.model_selection_train_test_split( stratify = data["variable"] )
Last updated 5 years ago