Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Pandas s3fs #4

Open
eden-ohana opened this issue Dec 5, 2021 · 0 comments
Open

Support Pandas s3fs #4

eden-ohana opened this issue Dec 5, 2021 · 0 comments

Comments

@eden-ohana
Copy link
Contributor

eden-ohana commented Dec 5, 2021

S3FS

S3Fs is a Pythonic file interface to S3. It builds on top of botocore.
The most common way to interact with s3 on Pandas.

API

Usage

import pandas as pd

key = "files/books.csv"

books_df = pd.read_csv(
    f"s3://{AWS_S3_BUCKET}/{key}",
    storage_options={
        "key": AWS_ACCESS_KEY_ID,
        "secret": AWS_SECRET_ACCESS_KEY,
        "token": AWS_SESSION_TOKEN,
    },
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants