Skip to content
Snippets Groups Projects
Commit 1b7e2bb7 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: deal with nonexisting obligatory

parent f533aa94
No related branches found
No related tags found
2 merge requests!73MAINT: change wording of TableImporter argument and allow converters and...,!70ENH: allow to provide required columns explicitly
Pipeline #35532 passed
......@@ -374,7 +374,8 @@ class TableImporter():
for index, row in df.iterrows():
# if none of the relevant information is given, skip
if np.array([pd.isnull(row.loc[key]) for key in self.obligatory_columns]).all():
if np.array([pd.isnull(row.loc[key]) for key in self.obligatory_columns
if key in df.columns]).all():
df = df.drop(index)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment