问题描述
我有一个看起来像这样的列表:
categorical_features = \
['FireplaceQu','BsmtQual','BsmtCond','GarageQual','GarageCond','ExterQual','ExterCond','HeatingQC','PoolQC','KitchenQual','BsmtFinType1','BsmtFinType2','Functional','Fence','BsmtExposure','GarageFinish','LandSlope','LotShape','PavedDrive','Street','Alley','CentralAir','MSSubClass','OverallQual','OverallCond','YrSold','MoSold']
我需要通过执行以下操作从数据集中删除这些列:
all_data = all_data.loc[:,categorical_features]
不幸的是,此步骤仅选择这些列。我将如何通过排除它们来逆转该过程?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)