Update tfidf.py
Browse files
tfidf.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
from sklearn.model_selection import train_test_split
|
2 |
X = df['title']
|
3 |
y = df['labels']
|
|
|
1 |
+
import pandas as pd
|
2 |
+
df = pd.read_csv(file_path)
|
3 |
+
df
|
4 |
from sklearn.model_selection import train_test_split
|
5 |
X = df['title']
|
6 |
y = df['labels']
|