FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 6e34d54b authored by J.W. Smith's avatar J.W. Smith
Browse files

fix: More robust joining of surveys databases

Handle missing redundant columns and continue to set a common column
order at the same time.
parent 062c82d6
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,8 @@ def process_in_job_survey(jobPath,status,config,component):
continue
# re-order columns to match first case (presumed standard format)
dfi = dfi[standard_columns]
# and fill missing columns with empty strings
dfi = dfi.reindex(standard_columns,fill_value='',axis='columns')
logger.debug(f"Next processed form contains {dfi.shape[0]} records")
......
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