I have already read through the answers available here and here and these do not help.
I am trying to read a csv object from S3 bucket and have
csv
S3
This worked for me.
import pandas as pd import boto3 import io s3_file_key = 'data/test.csv' bucket = 'data-bucket' s3 = boto3.client('s3') obj = s3.get_object(Bucket=bucket, Key=s3_file_key) initial_df = pd.read_csv(io.BytesIO(obj['Body'].read()))