Amazon S3
This guide explains how to use datasets stored in Amazon S3 bucket with Openlayer.
Openlayer currently accepts datasets in two formats: pandas dataframes and CSV files. Consequently, the first step is to ensure that the data you wish to use is in one of these formats.
Pull a dataset from S3 into a pandas dataframe
This is the recommended option if you can load your dataset into memory using a pandas dataframe. To retrieve your data from S3 and load it into a pandas dataframe, use the following code:
With the dataset as a pandas dataframe, you can upload it to the the platform either in development or monitoring mode.
Pull a dataset from S3 into a CSV file
This is the recommended option if you prefer saving your dataset to disk instead of loading it to memory, as in the previous section. To retrieve your data from S3 and save it to disk, use the following code:
Upload to Openlayer
With the dataset saved as a CSV file, you can upload it to the the platform either in development or monitoring mode.
Was this page helpful?