Datasets:
Sub-tasks:
multi-class-classification
Languages:
English
Size:
1K<n<10K
Tags:
natural-language-understanding
ideology classification
text classification
natural language processing
License:
EricR401S
commited on
Commit
•
b51128e
1
Parent(s):
ec42311
fast commits
Browse files
Pill_Ideologies-Post_Titles.py
CHANGED
@@ -274,7 +274,7 @@ class SubRedditPosts(datasets.GeneratorBasedBuilder):
|
|
274 |
"is_video": row.get("is_video"),
|
275 |
}
|
276 |
|
277 |
-
def process_data(df):
|
278 |
"""This function takes a dataframe and processes it to remove any unwanted columns and rows"""
|
279 |
# columns that cannot be empty,so drop rows
|
280 |
df = df.dropna(subset=["subreddit"])
|
|
|
274 |
"is_video": row.get("is_video"),
|
275 |
}
|
276 |
|
277 |
+
def process_data(self, df):
|
278 |
"""This function takes a dataframe and processes it to remove any unwanted columns and rows"""
|
279 |
# columns that cannot be empty,so drop rows
|
280 |
df = df.dropna(subset=["subreddit"])
|