We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1d7c8a commit 42405e2Copy full SHA for 42405e2
orangecontrib/text/import_documents.py
@@ -181,6 +181,9 @@ class YamlMetaReader(Reader):
181
def read_file(self):
182
with open(self.path, "r") as f:
183
self.content = yaml.safe_load(f)
184
+ for k in self.content:
185
+ if self.content[k] is None:
186
+ self.content[k] = ""
187
188
189
class UrlReader(Reader, CoreUrlReader):
@@ -287,8 +290,6 @@ def _read_meta_data(self):
287
290
content = data.content
288
291
if isinstance(content, dict):
289
292
content = pd.DataFrame(content, index=[0])
- # if reader is YamlMetaReader:
- # content = content.replace("None", np.nan)
293
meta_dfs.append(content)
294
else:
295
errors.append(error)
0 commit comments