Merged in feature/update-postprocessing-columns (pull request #893)
move column order to final step * move column order to final step * Black Approved-by: Siddhant Medar
This commit is contained in:
@@ -136,9 +136,6 @@ def standard_postprocess(df, constants: Constants):
|
||||
|
||||
df = postprocessing_funcs.attach_sid_column(df)
|
||||
|
||||
# Standardize output column order - this should ALWAYS be the final postprocessing step
|
||||
df = postprocessing_funcs.reorder_columns(df, FIELD_FORMAT_MAPPING)
|
||||
|
||||
df["FILE_NAME"] = df["FILE_NAME"].apply(postprocessing_funcs.standardize_file_name)
|
||||
|
||||
# This will remove non-standard characters from every cell in the DataFrame
|
||||
@@ -147,6 +144,8 @@ def standard_postprocess(df, constants: Constants):
|
||||
# Remove N/A values from all columns (standard cleaning for all outputs)
|
||||
df = postprocessing_funcs.clean_na_values(df)
|
||||
|
||||
# Standardize output column order - this should ALWAYS be the final postprocessing step
|
||||
df = postprocessing_funcs.reorder_columns(df, FIELD_FORMAT_MAPPING)
|
||||
return df
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user