具有特征类型和特征描述的特征数据插补和提取

时间:2020-10-12 18:17:17

标签: python data-cleaning imputation

如何将我的数据分类为以下格式?

Feature    Feature_Type         Description

age        numeric                age of a person
job        Categorigol,nominal    type of job ('admin.','blue-collar',' 
                                  entrepreneur','housemaid','management','retired','self- 
                                  employed','services','student','technician','unemployed','unknown')
marital    categorical,nominal    marital status ('divorced','married','single','unknown'; note: 
                                  'divorced' means divorced or widowed)

我的意思是,如果我有一个数据集,并且想对所有列的数据头进行分类,或者我想对上述格式的列中的唯一值进行分类,那么代码将是什么?我可以使用data.head()data.info()提取数据头,但如何在要素类型中添加描述呢?

0 个答案:

没有答案
相关问题