pythonscikit-learn

sklearn importing standard scaler


I imported standardscaler for a code:

from sklearn.preprocessing import standardscaler

It shows like

cannot import name 'standardscaler' from 'sklearn.preprocessing'

How to solve the error?


Solution

  • Names in Python are case-sensitive.

    Try:

    from sklearn.preprocessing import StandardScaler