项目 lib 文档展示了如何将 pandas 数据框保存到项目资产中:
# Import the lib
from project_lib import Project
project = Project(sc,"<ProjectId>", "<ProjectToken>")
# let's assume you have the pandas DataFrame pandas_df which contains the data
# you want to save in your object storage as a csv file
project.save_data("file_name.csv", pandas_df.to_csv())
# the function returns a dict which contains the asset_id, bucket_name and file_name
# upon successful saving of the data
但是,如果我有一个本地文件...
! wget url_to_binary_file
然后如何将该文件上传到项目的资产中?