- 添加多个数据预处理示例脚本,包括离散化、去重、缺失值处理、插值、标准化等 - 新增 CheckNULL、Interpolation、Merge 等实用工具脚本 - 提供了不同的标准化方法示例,如标准差标准化、离差标准化、小数定标标准化
11 lines
281 B
Python
11 lines
281 B
Python
import pandas as pd
|
|
num=[200,300,400,600,1000]
|
|
df=pd.DataFrame(num)
|
|
print(df.describe())
|
|
df0=(df-df.min())/(df.max()-df.min()) #离差标准化
|
|
print(df0)
|
|
print(df.mean()) #标准差标准化
|
|
df1=(df-df.mean())/df.std()
|
|
print(df1)
|
|
df2=(df/(10**4)) #小数定标标准化
|
|
print(df2) |