yitingliii commited on
Commit
c2e00ba
·
verified ·
1 Parent(s): f7ba0f9

Update tfidf.py

Browse files
Files changed (1) hide show
  1. tfidf.py +3 -0
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']