datacipen commited on
Commit
57ab4f7
·
verified ·
1 Parent(s): f8cba4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -628,8 +628,6 @@ def API_France_Travail(romeListArray):
628
  except:
629
  print("Il n'y a pas d'offres d'emploi.")
630
 
631
- eval_res, tempfile = js2py.run_file("./public/contexte.js")
632
- tempfile.contextia(str(results))
633
  results_df = pd.DataFrame(results)
634
  return results_df
635
 
@@ -857,6 +855,8 @@ def create_repartition(array_value, selectedData, theme):
857
  plot_bgcolor = 'rgba(255, 255, 255, 1)'
858
 
859
  df_FT = API_France_Travail(array_value)
 
 
860
 
861
  ######## localisation ########
862
  df = df_FT[['intitule','typeContratLibelle','experienceLibelle','lieuTravail','secteurActiviteLibelle']].copy()
 
628
  except:
629
  print("Il n'y a pas d'offres d'emploi.")
630
 
 
 
631
  results_df = pd.DataFrame(results)
632
  return results_df
633
 
 
855
  plot_bgcolor = 'rgba(255, 255, 255, 1)'
856
 
857
  df_FT = API_France_Travail(array_value)
858
+ eval_res, tempfile = js2py.run_file("./public/contexte.js")
859
+ tempfile.contextia(df_FT.to_string(index = False))
860
 
861
  ######## localisation ########
862
  df = df_FT[['intitule','typeContratLibelle','experienceLibelle','lieuTravail','secteurActiviteLibelle']].copy()