aif360.sklearn.datasets.to_dataframe¶
-
aif360.sklearn.datasets.to_dataframe(data)[source]¶ Format an OpenML dataset Bunch as a DataFrame with categorical features if needed.
Parameters: data (Bunch) – Dict-like object containing data,feature_namesand, optionally,categoriesattributes. Note:datashould contain both X and y data.Returns: pandas.DataFrame – A DataFrame containing all data, including target, with categorical features converted to ‘category’ dtypes.