text_plain_output_1.png
from sklearn.feature_extraction.text import TfidfVectorizer

import pandas as pd

import pandas as pd

df = pd.DataFrame(columns=['text', 'label'])

old_dataset = pd.read_csv('./events.csv')

df = pd.read_csv('../input/emails-events/emails_events.csv')

tfidf = TfidfVectorizer(max_features=10000)
dtm = tfidf.fit_transform(X).toarray()
words = tfidf.get_feature_names()
X_dtm = pd.DataFrame(columns=words, data=dtm)