Spaces:
Sleeping
Sleeping
total offres
Browse files
app.py
CHANGED
|
@@ -97,7 +97,7 @@ def carte(col):
|
|
| 97 |
dfa=dfg.agg(total= ("Compétence", lambda x: len(x)),
|
| 98 |
compétence= ("Compétence", lambda x: x.value_counts().to_string(header=False).replace("\n", "<br>"))).reset_index()
|
| 99 |
gdet=gpd.GeoDataFrame(dfa.merge(gcantons, how='right')).rename(columns={"total": "total offres"})
|
| 100 |
-
m=gdet.explore(column="total", tooltip=["canton", "compétence", "total offres"],
|
| 101 |
cmap="viridis", vmax=10, tiles="CartoDB positron")
|
| 102 |
|
| 103 |
res_form = [nom for (nom, dist) in vicf.query(test_emb, k=50)[0] if dist<proximax_formation]
|
|
|
|
| 97 |
dfa=dfg.agg(total= ("Compétence", lambda x: len(x)),
|
| 98 |
compétence= ("Compétence", lambda x: x.value_counts().to_string(header=False).replace("\n", "<br>"))).reset_index()
|
| 99 |
gdet=gpd.GeoDataFrame(dfa.merge(gcantons, how='right')).rename(columns={"total": "total offres"})
|
| 100 |
+
m=gdet.explore(column="total offres", tooltip=["canton", "compétence", "total offres"],
|
| 101 |
cmap="viridis", vmax=10, tiles="CartoDB positron")
|
| 102 |
|
| 103 |
res_form = [nom for (nom, dist) in vicf.query(test_emb, k=50)[0] if dist<proximax_formation]
|