From 97a61b34e4e08c3b289ac9353db692005daabda5 Mon Sep 17 00:00:00 2001 From: Colas Geier Date: Mon, 11 Oct 2021 16:15:24 +0200 Subject: [PATCH] tools update drop fonction --- pycen/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pycen/tools.py b/pycen/tools.py index 91a2af9..48d3b9d 100644 --- a/pycen/tools.py +++ b/pycen/tools.py @@ -191,7 +191,7 @@ def _get_relation_tab(schema, tab, id_site=None, nom_site=None, last_update=Fals last_update=last_update,params_col=params_col,milieu=milieu,statut=statut) if not geom and not dfSG.empty: - dfSG.drop('geom',1,inplace=True) + dfSG.drop(columns=['geom'],inplace=True) ids = dfSG.id.tolist() table = tab @@ -215,7 +215,7 @@ def _get_relation_tab(schema, tab, id_site=None, nom_site=None, last_update=Fals if not df.empty: df = merge(dfSG,df, how='left', left_on='id', right_on='id_geom_site', suffixes=('_x', None)) \ - .drop(['id_x','id_geom_site'],1) \ + .drop(columns=['id_x','id_geom_site']) \ .set_index('id').reset_index() return df