Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
266 B
2
Indexable
def unique_word_list(data, column):
    str2 =''
    for i in data[column]:
        str1 = ' '.join(i)
        str2 = str2+ ' ' + str1
    train_data_list = set(str2.split())
    unique_train_data_word = list(train_data_list)
    return unique_train_data_word