Skip to content

Commit e5e3ec8

Browse files
committed
Convert column to string before setting datatypes
1 parent de1b8bc commit e5e3ec8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/jobs/housing/housing_apply_gx_dq_tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ def main():
136136
value=results_df.set_index(['expectation_config.type', 'dataset_name']).index.factorize()[0] + 1)
137137
results_df['expectation_id'] = results_df['expectation_config.type'] + "_" + results_df['dataset_name']
138138

139+
# convert single column to string to avoid conversion error later on
140+
results_df['result.unexpected_list'] = results_df['result.unexpected_list'].astype(str)
141+
139142
results_df['import_year'] = datetime.today().year
140143
results_df['import_month'] = datetime.today().month
141144
results_df['import_day'] = datetime.today().day

0 commit comments

Comments
 (0)