I am trying to use train_test_split from package scikit Learn, but I am having trouble with parameter stratify. Hereafter is the code:
train_test_split
stratify
Scikit-Learn is just telling you it doesn't recognise the argument "stratify", not that you're using it incorrectly. This is because the parameter was added in version 0.17 as indicated in the documentation you quoted.
So you just need to update Scikit-Learn.