Skip to content
Snippets Groups Projects
Verified Commit a76a989e authored by Timm Fitschen's avatar Timm Fitschen
Browse files

REVIEW: simplified an expression

parent e19f5158
Branches
Tags
1 merge request!22Release 0.3
...@@ -96,9 +96,9 @@ class XLS_Importer(object): ...@@ -96,9 +96,9 @@ class XLS_Importer(object):
df = df.copy() df = df.copy()
uniques = [] uniques = []
for index, row in df.iterrows(): subtable = df[list(self.unique_columns)]
element = tuple(row.loc[key] for key in self.unique_columns) for index, row in subtable.iterrows():
element = tuple(row)
if element in uniques: if element in uniques:
errmssg = ( errmssg = (
"The {}. row contains the values '{}'.\nThis value " "The {}. row contains the values '{}'.\nThis value "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment