【发布时间】:2021-09-16 10:47:10
【问题描述】:
在我的脚本中,我生成了一个数据框,我想将它作为 parquet 文件直接上传到 Dropbox。我设法找到了这样的解决方案:
https://gist.github.com/MaxHalford/f17994c77bb775fdd04c9cd925e0b279
这可以帮助我保存数据框。但是,我真的很想直接发送拼花文件。
对我来说似乎很直观的选项:
fileToSave=tempDf.to_parquet('newFile.parquet')
upload_file(dbx, file_location, fileToSave)
但它会抛出
TypeError: expected str, bytes or os.PathLike object, not NoneType
你知道怎么做吗?
【问题讨论】:
标签: file-upload dropbox parquet dropbox-api uploading