Skip to content

Commit

Permalink
Update of origin column
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos González Gamella committed Nov 29, 2024
1 parent 6d4850b commit 2edec7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions integracion_opendata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,6 +1206,7 @@ def replace_procedure_code(value):
if 'origen' not in df_minors_base.columns:
df_minors_base['origen'] = 'minors_place'

#import pdb; pdb.set_trace()
logging.info(f"Las cols de place de contratos menores son: {df_minors_base.columns.tolist()}")
# Combinar con df_minors_base
df_minors_combined = pd.concat([df_minors_base, df_menores_ren], ignore_index=True)
Expand Down Expand Up @@ -1291,6 +1292,8 @@ def replace_procedure_code(value):
df_minors_combined['ContractFolderStatus.ProcurementProjectLot.ProcurementProject.BudgetAmount.TaxExclusiveAmount']= df_minors_combined['ContractFolderStatus.ProcurementProjectLot.ProcurementProject.BudgetAmount.TaxExclusiveAmount'].apply(eliminar_corchetes)
df_minors_combined['ContractFolderStatus.ProcurementProjectLot.ProcurementProject.BudgetAmount.TaxExclusiveAmount'] = \
df_minors_combined['ContractFolderStatus.ProcurementProjectLot.ProcurementProject.BudgetAmount.TaxExclusiveAmount'].apply(convert_to_object_array)

df_minors_combined['origen'] = df_minors_combined['origen'].apply(convert_to_object_array)

#import pdb; pdb.set_trace()
logging.info("Guardando datos de contratos MENORES procesados...")
Expand Down Expand Up @@ -1472,6 +1475,8 @@ def replace_procedure_code(value):
df_outsiders_all['ContractFolderStatus.TenderingProcess.ProcedureCode'] = \
df_outsiders_all['ContractFolderStatus.TenderingProcess.ProcedureCode'].apply(convert_to_object_array)

df_outsiders_all['origen'] = df_outsiders_all['origen'].apply(convert_to_object_array)

#import pdb; pdb.set_trace()
df_outsiders_all.drop(columns=cols_drop, inplace=True, errors='ignore')

Expand Down

0 comments on commit 2edec7a

Please sign in to comment.