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
•
5ba90bf
1
Parent(s):
2637965
ridiculous
Browse files
Pill_Ideologies-Post_Titles.py
CHANGED
@@ -175,8 +175,8 @@ class SubRedditPosts(datasets.GeneratorBasedBuilder):
|
|
175 |
df[col].fillna("No-NAN-Nothing found", inplace=True)
|
176 |
elif df[col].dtype in ["int64", "float64", "int32", "float32", "int"]:
|
177 |
df[col].fillna(0, inplace=True)
|
178 |
-
|
179 |
-
|
180 |
else:
|
181 |
df[col].fillna("NAN - problematic {col} found", inplace=True)
|
182 |
return None
|
|
|
175 |
df[col].fillna("No-NAN-Nothing found", inplace=True)
|
176 |
elif df[col].dtype in ["int64", "float64", "int32", "float32", "int"]:
|
177 |
df[col].fillna(0, inplace=True)
|
178 |
+
elif df[col].dtype == "bool":
|
179 |
+
df[col].fillna(False, inplace=True)
|
180 |
else:
|
181 |
df[col].fillna("NAN - problematic {col} found", inplace=True)
|
182 |
return None
|