openml.datasets.OpenMLDataFeature

class openml.datasets.OpenMLDataFeature(index: int, name: str, data_type: str, nominal_values: list[str], number_missing_values: int, ontologies: list[str] | None = None)

Data Feature (a.k.a. Attribute) object.

Parameters:
indexint

The index of this feature

namestr

Name of the feature

data_typestr

can be nominal, numeric, string, date (corresponds to arff)

nominal_valueslist(str)

list of the possible values, in case of nominal attribute

number_missing_valuesint

Number of rows that have a missing value for this feature.

ontologieslist(str)

list of ontologies attached to this feature. An ontology describes the concept that are described in a feature. An ontology is defined by an URL where the information is provided.