我正在尝试通过交互模式读取多个csv文件。我使用的代码如下所示:
uploader = widgets.FileUpload(
accept='*.csv', # Accepted file extension e.g. '.txt', '.pdf', 'image/*', 'image/*,.pdf'
multiple=False # True to accept multiple files upload else False
)
display(uploader)
[uploaded_file] = uploader.value
pd.read_csv(file_path + uploaded_file)
使用此方法,我可以上载一个文件,但不能上载多个。如果我使用multiple = True
,结果是空字典{}
。我希望file_path
和csv file
都是交互式的
有人能指引我吗
目前没有回答
相关问题 更多 >
编程相关推荐