Get the App
SLTechnology News&Howtos  ›  Development  › 

What does Python data standardization mean?

Shulou Source: shulou.com Published: 2022-06-03 15:34:02 10月01日 Update

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!

Tags: Data standard standardization article meaning small example original value interest at the same time mean average variance more friends knowledge editing scope industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Technology Xiaomi MySQL Shulou Tech Info