diff --git a/1_SICEN/MIGRATION GEONATURE/sicen_to_gn.py b/1_SICEN/MIGRATION GEONATURE/sicen_to_gn.py index 398c825..3af3b46 100644 --- a/1_SICEN/MIGRATION GEONATURE/sicen_to_gn.py +++ b/1_SICEN/MIGRATION GEONATURE/sicen_to_gn.py @@ -781,7 +781,7 @@ if __name__ == "__main__": sql_flo = 'SELECT * FROM saisie.%s'%v_synthese_flore v_flo = gpd.read_postgis(sql_flo+" WHERE"+sql_exclude_rnngl,con_sicen).dropna(how='all',axis=1) - v_flo_autre = gpd.read_postgis(sql_flo+" AND"+sql_rmqloc_null,con_sicen).dropna(how='all',axis=1) + v_flo_autre = gpd.read_postgis(sql_flo+" WHERE"+sql_rmqloc_null,con_sicen).dropna(how='all',axis=1) v_flo = gpd.pd.concat([v_flo,v_flo_autre],ignore_index=True).reset_index(drop=True) v_flo_rnngl = gpd.read_postgis(sql_flo+" WHERE"+sql_exclude_rnngl.replace('NOT ',''),con_sicen).dropna(how='all',axis=1) t1_flo = v_flo_rnngl.etude.str.contains('Haute Bourbre 2014') @@ -799,6 +799,9 @@ if __name__ == "__main__": #v_synthese_flore = 113556 #v_flo.shape[0]+v_flo_rnngl.shape[0] = 113556 + + v_rnngl = gpd.pd.concat([v_ver_rnngl,v_flo_rnngl,v_inv_rnngl],ignore_index=True) + v_inv_explode = format_data(v_inv) V_VER = v_ver.copy() v_ver = V_VER.copy()