yitingliii
commited on
Commit
•
51945a3
1
Parent(s):
66e6819
Update data_cleaning.py
Browse files- data_cleaning.py +0 -2
data_cleaning.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
```python
|
2 |
def clean(df):
|
3 |
stop_words = set(stopwords.words('english'))
|
4 |
lemmatizer = WordNetLemmatizer()
|
@@ -20,4 +19,3 @@ def clean(df):
|
|
20 |
df.drop_duplicates(subset=['title'], inplace=True)
|
21 |
|
22 |
return df
|
23 |
-
```
|
|
|
|
|
1 |
def clean(df):
|
2 |
stop_words = set(stopwords.words('english'))
|
3 |
lemmatizer = WordNetLemmatizer()
|
|
|
19 |
df.drop_duplicates(subset=['title'], inplace=True)
|
20 |
|
21 |
return df
|
|