I am trying to write and save a CSV file to a specific folder in s3 (exist). this is my code:
from io import BytesIO import pandas as pd import boto3 s3 =
Saving into s3 buckets can be also done with upload_file with an existing .csv file:
upload_file
import boto3 s3 = boto3.resource('s3') bucket = 'bucket_name' filename = 'file_name.csv' s3.meta.client.upload_file(Filename = filename, Bucket= bucket, Key = filename)