Skip to content

read_csv Pass File System (AWS, GCP) as Option. #30359

Closed
@phdnzdeveloper

Description

@phdnzdeveloper

Code Sample

pd.read_csv('s3://other_owner_bucket_name/data', file_system=s3fs.FileSystem(key='abc', secret='123'))

Or

pd.read_csv('s3://other_owner_bucket_name/data', storage_options={'key':'abc', 'secret':'123'})

Problem description

Hi Team, I am currently using pandas for query a lot of CSV data from different file system such as AWS, GCP. However, with a current option, it just allows default key/secret credential from configuration file [default]. So I would like to ask for an option to pass a pre-created file system to read CSV files from different clouds with different credentials.

Best Regards
Giang

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIO DataIO issues that don't fit into a more specific labelNeeds DiscussionRequires discussion from core team before further action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions