Skip to content
START WITH A QUESTION

What would you like to understand?

Find an answer. See the moment it becomes clear. Follow the idea further.

← Concept directory

Answers for “为什么标准化输出包含负值?”

1 keyword matches

Understanding your question. You can explore the search results below now.

Find a method

↗

Import `StandardScaler` from `sklearn.preprocessing`, instantiate it, and call `fit_transform` on the selected DataFrame columns. This transforms the data to have mean 0 and standard deviation 1.

Conditions: Input data is numerical.; Scikit-learn library is installed.