我一直在使用 Pandas 来格式化数据帧,然后将其转换为 CSV,然后手动上传到 BigQuery(根据大小,我之前上传到 Cloud Storage)。
我经常使用 Google Colaboratory 作为我的笔记本 UI。
是否可以通过直接从 Pandas 上传到 BQ/CS 来简化流程?如何?
pandas google-cloud-storage google-bigquery google-cloud-platform google-colaboratory
我长期使用 Colab 的 BigQuery,自 2020 年以来,我的帐户已加入 Google 的增强安全计划。直到昨天我还没有遇到任何身份验证问题
from google.colab import auth
auth.authenticate_user()
Run Code Online (Sandbox Code Playgroud)
但现在我收到了 400 错误。以下是它提供的详细信息:
access_type: offline
login_hint: (email)
response_type: none gsession
redirect_uri: https://colab.research.google.com/tun/m/auth-user-ephem
state: {"token":"(token)","endpoint":"(endpoint)","scopes":["openid","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/drive"]}
hd: (domain)
prompt: consent
client_id: (client_id)
scope: openid https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/drive
Run Code Online (Sandbox Code Playgroud)
我的问题: auth 上是否有允许进行身份验证的配置?
pandas ×1