twinlab.Dataset.append#
- Dataset.append(df, verbose=False)[source]#
Append new data to an existing dataset in the twinLab cloud.
Appending data to an existing dataset is useful when new data becomes available and needs to be added to the dataset for training purposes. This can be useful when new data is generated over time, for example when using twinLab’s
Emulator.recommend
functionality. This method allows for the dataset to be updated directly on the cloud without needing to download, update and re-upload the entire dataset.Please note that the new dataset must have the same columns as the original dataset.
- Parameters:
df (pandas.DataFrame) – A pandas.DataFrame containing the dataset to be appended.
verbose (bool, optional) – Display information about the operation while running.
- Return type:
Example
dataset = tl.Dataset("my_dataset") df = pd.DataFrame({"X": [1, 2, 3, 4], "y": [1, 4, 9, 16]}) dataset.append(df)