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

FIX: remove deprecated iteritems

parent 9682f011
No related branches found
No related tags found
2 merge requests!73MAINT: change wording of TableImporter argument and allow converters and...,!71MAINT: adapt to new default keyword RECORD in FIND queries
Pipeline #35358 failed
......@@ -154,7 +154,7 @@ def create_files_list(df, ftype):
files = []
for indx, src in df.loc[ftype,
pd.notnull(df.loc[ftype])].iteritems():
pd.notnull(df.loc[ftype])].items():
desc = df.loc[ftype+" description", indx]
if pd.notnull(desc):
......
......@@ -79,7 +79,7 @@ def from_table(spreadsheet, recordtype):
rec = db.Record()
rec.add_parent(name=recordtype)
for key, value in row.iteritems():
for key, value in row.items():
if key.lower() == "description":
rec.description = value
continue
......
......@@ -334,7 +334,7 @@ class TableImporter():
# Now check each element
for idx, val in df.loc[
pd.notnull(df.loc[:, key]), key].iteritems():
pd.notnull(df.loc[:, key]), key].items():
if not isinstance(val, datatype):
msg = (
......
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