I'm currently reading in .txt files from a folder into an array, then appending each array to a list.
path_M = r'FYP_Datasets/Large_Movie_dataset/aclImdb/train/pos//'
all_files = glob.glob(path_M + "*.txt")
for filename in all_files:
temp = np.loadtxt(filename,dtype=str,encoding="UTF-8")
li.append(temp)
print(li)
When I print the list, it is printing out "Index: [], Empty DataFrame"
Is there a way to remove this?
Ideally, I want the text file read into a list with each word separated. Then that array put into one overall list.
i.e. [ ["I", "am", "here"] ["You", "Are", "Here"] ]
