Create a single (coalesced) CSV file for Training Data

import hsfs
connection = hsfs.connection()
fs = connection.get_feature_store()

You should have already created the sales_fg and exogenous_fg feature groups by running the hsfs/basics/feature-engineering.ipynb notebook.

sales_fg = fs.get_feature_group('sales_fg')
exogenous_fg = fs.get_feature_group('exogenous_fg')

df = sales_fg.select_all().join(exogenous_fg.select_all())

Set coalesce to True, when creating a training dataset to produce a single CSV file.

td = fs.create_training_dataset(name="sales_model_one",
                               description="Single CSV file to train the sales model",