File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
euctr/euctr/management/commands Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def load_data_into_pandas(db, sufficiently_old):
7676
7777def cleanup_dataset (euctr_cond ):
7878 """cleaning up the condensed EUCTR dataset and adding the false conditions"""
79- euctr_cond ['date_of_the_global_end_of_the_trial' ] = pd .to_datetime (euctr_cond ['date_of_the_global_end_of_the_trial' ])
79+ euctr_cond ['date_of_the_global_end_of_the_trial' ] = pd .to_datetime (euctr_cond ['date_of_the_global_end_of_the_trial' ], errors = 'coerce' )
8080 euctr_cond ['trial_is_part_of_a_paediatric_investigation_plan' ] = (euctr_cond ['trial_is_part_of_a_paediatric_investigation_plan' ] == True ).astype (int )
8181 euctr_cond ['trial_human_pharmacology_phase_i' ] = (euctr_cond ['trial_human_pharmacology_phase_i' ]== True ).astype (int )
8282 euctr_cond ['trial_therapeutic_exploratory_phase_ii' ] = (euctr_cond ['trial_therapeutic_exploratory_phase_ii' ]== True ).astype (int )
You can’t perform that action at this time.
0 commit comments