What does Python data standardization mean?
This article mainly introduces the meaning of Python data standardization, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Description
1. Convert the original data to a mean value of 0, and the standard deviation is in the range of 1.
2. For standardization: if there are outliers, because there is a certain amount of data, a small number of outliers have little impact on the average, so the variance does not change much.
Example
Def stand_demo (): "Standardization: return:" # 1. Get the data data = pd.read_csv ('dating.txt') data = data.iloc [:,: 3] print (' data:\ n, data) # 2. Instantiate a converter class transfer = StandardScaler () # 3. Call fit_transform () data_new = transfer.fit_transform (data) print ('data_new:\ nstandardization, data_new) return None to thank you for reading this article carefully. I hope the article "what is the meaning of Python data standardization" shared by the editor is helpful to everyone? at the same time, I also hope that you will support and pay attention to the industry information channel, and more related knowledge is waiting for you to learn!