Steps
Step 1: Install Required Libraries
1
Before you begin, install the necessary Python libraries:
Step 2: Configure AWS S3 Credentials
1
Set up AWS credentials using environment variables for security:
Step 3: Retrieve Data from S3 and Load into Pandas
1
Now, let’s fetch the file from S3, read its content, and convert it into a Pandas DataFrame:
💡 If your file is in CSV format, replace
pd.read_json()
with pd.read_csv(StringIO(data))
.Step 4: Upload Data to Athina IDE
1
To upload the retrieved data into Athina IDE, follow these steps:
- Set up the Athina API key
- Convert the DataFrame into a format suitable for Athina IDE
- Upload the dataset using
Dataset.add_rows()
2
Then, go to the Datasets section to verify that the data has been uploaded successfully.
