---
# System prepended metadata

title: Untitled

---

Importando arquivo do s3, a partir de uma conexão criada pela biblioteca boto3
```
import pandas as pd
import boto3
bucket = "icarros-sandbox-datalake"
usuario=21700695
file_name = f"tmp/usuarios/user_{usuario}.csv"
s3 = boto3.client('s3') 
# 's3' is a key word. create connection to S3 using default config and all buckets within S3
obj = s3.get_object(Bucket= bucket, Key= file_name) 
# get object and file (key) from bucket

df = pd.read_csv(obj['Body']) # 'Body' is a key word
```