TypeError:initiate()获得意外的关键字参数“timeout”

2024-10-02 10:22:30 发布

您现在位置:Python中文网/ 问答频道 /正文

我想使用此代码将数据从csv加载到BigQuery

df.to_gbq(table_for_uploading, upload_table, project_id=project_id, if_exists='replace', table_schema = [{'name':'execution_date','type': 'DATE'}])

我犯了这个错误

TypeError: initiate() got an unexpected keyword argument 'timeout'

有人能帮忙吗?为什么


Tags: csvto数据代码projectiddffor
1条回答
网友
1楼 · 发布于 2024-10-02 10:22:30

我怀疑安装google Resubable media==0.6可能会解决您的问题

pip uninstall google-resumable-media
pip uninstall google-cloud-storage
pip install google-resumable-media==0.6.0
pip install google-cloud-storage==1.30.0

你可以试试

相关问题 更多 >

    热门问题