Browse Source

Syntax error

Andrej 1 week ago
parent
commit
26058bfa42
1 changed files with 3 additions and 2 deletions
  1. 3 2
      importXLSX.py

+ 3 - 2
importXLSX.py

@@ -356,7 +356,7 @@ def setEntry(entry,df,r,objParse,pMap,pars):
    idField=pars.get('idField','ParticipantId')
    eId=entry[idField]
 
-   for v in df.columns
+   for v in df.columns:
       qv=validate(df.at[r,v])
       qv=modify(qv,v)
       f=findAlias(v,objParse['alias'])
@@ -446,7 +446,8 @@ def importData(pars,filename,getId=getId,modify=modify,\
 #copy columns, useful if two data items come from the same XLS column
    for col in copyColumns:
       df[col]=df[copyColumns[col]]
-
+   
+   print(df.columns)
    pMap={}
    print('Index: {}'.format(len(df.index)))
    idx=df.index #for all