title: boto3 to read csv file in s3 with * asterisk
body: <p>I have many csv files in s3 bucket and the full name is like:</p>
  
  <pre><code>fullname = “s3://mybucket/part-00000-46acaa37-75ba.csv”
  </code></pre>
  
  <p>I need  read  the files one by one so the filenames  will be using *</p>
  
  <pre><code>path = “s3://mybucket/*.csv”
  </code></pre>
  
  <p>The following code is working if I'm using  the fullname, but if using *, I will get the key wrong.</p>
  
  <pre><code>import pandas as pd
  import io
  import boto3
  
  session = boto3.Session()
  s3_client = session.client('s3')
  
  
  bucket= “mybucket”
  #key = part-00000-46acaa37-75ba.csv
  s3_client.get_object(Bucket=bucket, Key=key)
  df = pd.read_csv(io.BytesIO(obj['Body'].read()))
  </code></pre>
  
  <p>How could I work around this and read  all the files in the bucket?
  Thanks.</p>