title: Loading files from s3 with subfolders with python
body: <p>I'm trying to load a csv file in pandas from a s3 bucket in aws. Boto3 seems to fall short in providing functionalities for loading files from subfolders. Let's say i have the following path in s3:
  bucket1/bucketwithfiles1/file1.csv</p>
  
  <p>How do i specify how to load file1.csv? I know s3 doesn't have a directory structure.</p>
  
  <pre><code>import boto3
  import pandas as pd
  
  s3 = boto3.client('s3')
  obj = s3.get_object(Bucket='/bucket1/creditdefault-ff.csv')
  
  df = pd.read_csv(obj['Body'])
  </code></pre>