yitingliii
commited on
Commit
•
16a82d8
1
Parent(s):
959959a
Update tfidf.py
Browse files
tfidf.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
import pandas as pd
|
2 |
-
|
3 |
-
|
4 |
-
df
|
5 |
from sklearn.model_selection import train_test_split
|
6 |
X = df['title']
|
7 |
y = df['labels']
|
|
|
1 |
import pandas as pd
|
2 |
+
df = pd.read_csv("hf://datasets/CIS5190abcd/headlines_train/train_cleaned_headlines.csv")
|
3 |
+
|
|
|
4 |
from sklearn.model_selection import train_test_split
|
5 |
X = df['title']
|
6 |
y = df['labels']
|