kaggle中下载文件的一个方法

 import os
os.chdir(r'kaggle/working')

Now save your dataframe or any other file in this directory as below

df_name.to_csv(r'df_name.csv')

Then in a new cell give the below command

from IPython.display import FileLink
FileLink(r'df_name.csv')

A link will be generated, click on it and download the file and enjoy!!!

猜你喜欢

转载自blog.csdn.net/dragon_T1985/article/details/130666035
今日推荐