text_plain_output_4.png text_plain_output_3.png text_plain_output_2.png text_plain_output_1.png
from sklearn.feature_extraction.text import TfidfVectorizer

import numpy as np

import pandas as pd

df = pd.read_csv('../input/covidqa/community.csv')

vectorizer = TfidfVectorizer()
vectorizer.fit(np.concatenate((df.question, df.answer)))