Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -868,11 +868,13 @@ def create_repartition(array_value, selectedData, theme):
|
|
868 |
######## Filtre Emplois ########
|
869 |
options = []
|
870 |
if selectedData != None:
|
|
|
871 |
if type(selectedData['points'][0]['y']) == str:
|
872 |
options.append(selectedData['points'][0]['y'][:-3])
|
873 |
else:
|
874 |
options = selectedData['points'][0]['y'][:-3]
|
875 |
else:
|
|
|
876 |
options = df['intitule'].values.tolist()
|
877 |
df = df[df['intitule'].isin(options)]
|
878 |
|
@@ -906,7 +908,7 @@ def create_repartition(array_value, selectedData, theme):
|
|
906 |
},font=dict(size=10),paper_bgcolor=paper_bgcolor,autosize=True,clickmode='event+select'
|
907 |
).add_annotation(x=0, y=0.85, xanchor='left', yanchor='bottom',
|
908 |
xref='paper', yref='paper', showarrow=False, align='left',
|
909 |
-
text='<br><b>{}</b>'.format(
|
910 |
|
911 |
######## Compétences professionnelles ########
|
912 |
df_FT.dropna(subset=['qualitesProfessionnelles','formations','competences'], inplace=True)
|
|
|
868 |
######## Filtre Emplois ########
|
869 |
options = []
|
870 |
if selectedData != None:
|
871 |
+
customEmplois = selectedData['points'][0]['y'][:-3]
|
872 |
if type(selectedData['points'][0]['y']) == str:
|
873 |
options.append(selectedData['points'][0]['y'][:-3])
|
874 |
else:
|
875 |
options = selectedData['points'][0]['y'][:-3]
|
876 |
else:
|
877 |
+
customEmplois = "Tous les emplois"
|
878 |
options = df['intitule'].values.tolist()
|
879 |
df = df[df['intitule'].isin(options)]
|
880 |
|
|
|
908 |
},font=dict(size=10),paper_bgcolor=paper_bgcolor,autosize=True,clickmode='event+select'
|
909 |
).add_annotation(x=0, y=0.85, xanchor='left', yanchor='bottom',
|
910 |
xref='paper', yref='paper', showarrow=False, align='left',
|
911 |
+
text='<br><b>{}</b>'.format(customEmplois))
|
912 |
|
913 |
######## Compétences professionnelles ########
|
914 |
df_FT.dropna(subset=['qualitesProfessionnelles','formations','competences'], inplace=True)
|