I am working with a large amount of word files where i would like to make an excel file with where each word file is a column and each word in each document is a row. I am new to python; how would I do this?
I have this code to separate the words:
import string
remove = dict.fromkeys(map(ord, '\n ' + string.punctuation))
with open('data10.txt', 'r') as f:
for line in f:
for word in line.split():
w = f.read().translate(remove)
print(word.lower())
I just need to know how to get each word to be a row in excel.