image_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

dfpub = pd.read_csv('/kaggle/input/academic-publications-and-journals/wiki_query_22_12_2020.csv', encoding='iso-8859-1')

wordListCorpus = []
titleCorpus = []
failedConvert = []
for row in dfpub['tags'].values:
    try:
        tags = row.split(',')
        title = ' '.join(row.split(','))
    except AttributeError:
        failedConvert.append(row)
    for k in tags:
        wordListCorpus.append(k)
    titleCorpus.append(title)
len(wordListCorpus)

len(titleCorpus)