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