datacipen commited on
Commit
47fa0a9
·
verified ·
1 Parent(s): 1a0c571

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1149,10 +1149,9 @@ def update_experience(selectedData, array_value, theme):
1149
  Input('figRepartition', 'selectedData'),
1150
  Input(component_id='framework-multi-select', component_property='value'),
1151
  Input("mantine-provider", "forceColorScheme"),
1152
- Input('store-emplois', 'data')
1153
  )
1154
 
1155
- def update_tableau(selectedData, array_value, theme, data):
1156
  options = []
1157
  if selectedData != None:
1158
  if type(selectedData['points'][0]['hovertext']) == str:
@@ -1162,8 +1161,7 @@ def update_tableau(selectedData, array_value, theme, data):
1162
  else:
1163
  options = ['01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','2A','2B','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','65','66','67','68','69','70','71','72','73','74','75','76','77','78','79','80','81','82','83','84','85','86','87','88','89','90','91','92','93','94','95','971','972','973','974']
1164
 
1165
- #df_FT = API_France_Travail(array_value)
1166
- df_FT = pd.DataFrame(data)
1167
  df_FT["origineOffre"] = df_FT["origineOffre"].apply(lambda x: "[Voir l'offre sur le site web de France Travail](" + x['urlOrigine'] + ")")
1168
  df_FT["lieuTravail"] = df_FT["lieuTravail"].apply(lambda x: x['libelle']).apply(lambda x: x[0:3]).apply(lambda x: x.strip())
1169
  df_FT.drop(df_FT[df_FT['lieuTravail'] == 'Fra'].index, inplace = True)
 
1149
  Input('figRepartition', 'selectedData'),
1150
  Input(component_id='framework-multi-select', component_property='value'),
1151
  Input("mantine-provider", "forceColorScheme"),
 
1152
  )
1153
 
1154
+ def update_tableau(selectedData, array_value, theme):
1155
  options = []
1156
  if selectedData != None:
1157
  if type(selectedData['points'][0]['hovertext']) == str:
 
1161
  else:
1162
  options = ['01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','2A','2B','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','65','66','67','68','69','70','71','72','73','74','75','76','77','78','79','80','81','82','83','84','85','86','87','88','89','90','91','92','93','94','95','971','972','973','974']
1163
 
1164
+ df_FT = API_France_Travail(array_value)
 
1165
  df_FT["origineOffre"] = df_FT["origineOffre"].apply(lambda x: "[Voir l'offre sur le site web de France Travail](" + x['urlOrigine'] + ")")
1166
  df_FT["lieuTravail"] = df_FT["lieuTravail"].apply(lambda x: x['libelle']).apply(lambda x: x[0:3]).apply(lambda x: x.strip())
1167
  df_FT.drop(df_FT[df_FT['lieuTravail'] == 'Fra'].index, inplace = True)