1.统计指标示例-最小值/最大值
# (8)Min Value
np.min(df.iloc[:, 0])
df.iloc[:, 0][~np.in1d(df.iloc[:, 0], missSet)] # 去除缺失值
np.min(df.iloc[:, 0][~np.in1d(df.iloc[:, 0], missSet)]) # 去除缺失值后进行最小值计算
df_min = df.iloc[:, 0:3].apply(lambda x: np.min(x[~np.in1d(x, missSet)]))
# (9)Max Value
np.max(df.iloc[:, 0])
df.iloc[:, 0][~np.in1d(df.iloc[:, 0], missSet)] # 去除缺失值
np.max(df.iloc[:, 0][~np.in1d(df.iloc[:, 0], missSet)]) # 去除缺失值后进行最大值计算
df_max = df.iloc[:, 0:3].apply(lambda x: np.max(x[~np.in1d(x, missSet)]))
1.统计指标示例-最小值/最大值
# (8)Min Value
np.min(df.iloc[:, 0])
df.iloc[:, 0][~np.in1d(df.iloc[:, 0], missSet)] # 去除缺失值
np.min(df.iloc[:, 0][~np.in1d(df.iloc[:, 0], missSet)]) # 去除缺失值后进行最小值计算
df_min = df.iloc[:, 0:3].apply(lambda x: np.min(x[~np.in1d(x, missSet)]))
# (9)Max Value
np.max(df.iloc[:, 0])
df.iloc[:, 0][~np.in1d(df.iloc[:, 0], missSet)] # 去除缺失值
np.max(df.iloc[:, 0][~np.in1d(df.iloc[:, 0], missSet)]) # 去除缺失值后进行最大值计算
df_max = df.iloc[:, 0:3].apply(lambda x: np.max(x[~np.in1d(x, missSet)]))
最大/小值