Apr 27, 2021
Thank you for your comment.
The sentence clearly says "Both are the methods of class sklearn.preprocessing.StandardScaler() and used almost together while scaling or standardizing our training and test data.".
It does not say that it is only used for scaling.
Hope this clarifies your doubt.