G2A Many GEOs
SHARE
TWEET

Untitled

a guest Apr 4th, 2020 120 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ....
  2.  
  3. JFG_JG_dict = {}
  4. for index2, row2 in median_JFG_JG.iterrows():
  5.     if pd.isnull(row2['base_salary_75th [LOCAL]'])==False:
  6.         JFG_JG_dict[(row2['COUNTRY_CODE'], row2['Job Family Group'], row2['JG'])] = row2['base_salary_75th [LOCAL]']
  7.  
  8. ...
  9.  
  10. SOME_FINAL_DEFAULT_VALUE = None # jakas sensowna wartosc?
  11.  
  12. for index, row in dataset.iterrows():
  13.     if pd.isnull(row['base_salary_75th [LOCAL]']):
  14.         dataset.loc[index,'base_salary_75th [LOCAL]'] = JFG_JG_dict.get((ctry_cd, jfg, jg), False) or JFG_JG_dict.get((jfg, jg), SOME_FINAL_DEFAULT_VALUE)
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top