如何将我的数据分类为以下格式?
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()
提取数据头,但如何在要素类型中添加描述呢?