乐趣区

关于json:pandas-直接读取中国区-s3-文件qbit

  • sdk 版本
Python 3.9
pandas 1.3.1
  • 示例代码
import pandas as pd

s3options = {"client_kwargs": {"region_name": "cn-northwest-1"},  # 中国宁夏区
    "key": "aws_access_key_id",
    "secret": "aws_secret_access_key",
}

df = pd.read_csv("s3://qbit-cn-northwest-1/data/word.csv", storage_options=s3options)

print(df.head())

本文出自 qbit snap

退出移动版