featuretools.selection.remove_single_value_features#
- featuretools.selection.remove_single_value_features(feature_matrix, features=None, count_nan_as_value=False)[source]#
移除特征矩阵中所有值都相同的列。
- 参数:
feature_matrix (
pd.DataFrame
) – 特征矩阵,列为特征名称,行为实例。features (list[
featuretools.FeatureBase
] or list[str], optional) – 要选择的特征列表。count_nan_as_value – 如果为 True,缺失值将被计为它们自己独特的数值。如果设置为 False,则一个只有一种独特数值而其余数据都缺失的特征将被从特征矩阵中移除。默认为 False。