title: How to make connection S3 bucket using boto3 and access csv file?
body: <p>I have created connection with S3 using boto3 library. But still i'm not able to access file there. Can you please help me what i'm doing wrong here.</p>
  
  <pre><code>Bucket : itx-acm-pas-dev-incoming-sourcefiles
  File Name : Maestro_Data_loop_assignment_content.csv
  file Location : itx-acm-cde-prd-incoming-sourcefiles/janssen_learn/TgtFiles/Maestro_Data_loop_assignment_content/
  </code></pre>
  
  <p>I have tried one code also.</p>
  
  <pre><code>import boto3
  import csv
  import StringIO
  import pandas as pd
  from boto.s3.connection import S3Connection
  
  s3 = boto3.client('s3',
           aws_access_key_id='yyyyyyyy',
           aws_secret_access_key='xxxxxxxxxxx')
  
  AWS_KEY = 'yyyyyyyyyy'
  AWS_SECRET = 'xxxxxxxxxx'
  aws_connection = S3Connection(AWS_KEY, AWS_SECRET)
  bucket = aws_connection.get_bucket('itx-acm-pas-dev-incoming-sourcefiles')
  
  file_name = "itx-acm-cde-prd-incoming-sourcefiles/janssen_learn/TgtFiles/Maestro_Data_loop_assignment_content/Maestro_Data_loop_assignment_content.csv"
  
  content = bucket.get_key(file_name).get_contents_as_string()
  df = pd.read_csv(StringIO.StringIO(content))
  
  print(df.head(3))
  </code></pre>