Dataset.import_data_from_df

Dataset.import_data_from_df(data: DataFrame, custom_mapping: Dict[str, str | List[str]] | None = None, samples_perfile: int = 1000, flag_fromscratch: bool = False) None[source]

Import data from a pandas dataframe into the dataset.

Parameters:
  • data (pd.DataFrame) – The dataframe containing the data to be imported.

  • custom_mapping (Dict[str, Union[str, List[str]]], optional) – A dictionary mapping the names of DataObjects in the Dataset to the names of the columns in the dataframe. For multidimensional DataObjects, a list of column names can be provided. If None, the names of the DataObjects must match the names of the columns in the dataframe.

Notes

See aixd.data.default_importer.df_importer() for more information.