Reputation: 742
I have code where the path is this:
tr_path = "Folds_Raw/"+fold+"/Train/*.data"
I suppose it takes all the files from the path. I putted ".csv" file, ".npy" file, ".txt" file, ".xlsx" file but it does not take any of it. Let me first put my directory screen shot:
Now when I debug the line code here tr_paths = glob.glob(tr_path, recursive=True)
. It shows empty [ ] list. I am confused what actually this lines of code is doing?
Upvotes: 0
Views: 109
Reputation: 354
It only take the files that end with the extension ".data"
You should change:
tr_path = "Folds_Raw/"+fold+"/Train/*.data"
With:
tr_path = "Folds_Raw/"+fold+"/Train/*.*"
And it will take all files.
Upvotes: 2