openml.datasets
.attributes_arff_from_df¶
- openml.datasets.attributes_arff_from_df(df: pd.DataFrame) list[tuple[str, list[str] | str]] ¶
Describe attributes of the dataframe according to ARFF specification.
- Parameters:
- dfDataFrame, shape (n_samples, n_features)
The dataframe containing the data set.
- Returns:
- attributes_arfflist[str]
The data set attributes as required by the ARFF format.