在我的脚本中,我生成了一个数据框,我想将它作为镶木地板文件直接上传到 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
知道如何以其他方式完成吗?