我希望在Python中使用datatable来读取csv,使用 df = dt.fread(r"C:\Users\Tom\Documents\Python\project 1\Data\train_2017.csv") 然而,我得到了一个错误: Unable to obtain size of C:\Users\Tony\Documents\Python\project 1\Data\train_2017: [errno 2] No such file or directory 我只能
我将两组json文件分别存储在两个文件夹(名为firstdata和seconddata)中。我正在尝试读取这两个文件夹中的所有文件,并将其分别放入两个数组中。下面是我做的代码:for subdir, dir, file in os.walk(directory):
if subdir == 'D:\Python\project\firstdata