SHARE
TWEET

Untitled

a guest Aug 25th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. df.loc[~df['Actual Days to Complete'].notnull(), 'Cases Metric Met'] = df['Actual Days to Complete']
  2.  
  3. df['Cases Metric Met'] = np.where((df['Actual Days to Complete']<= df['Metric (Days)']),1 ,0)
  4.  
  5. df.loc[(df['Component'] == 'USSS') & (df['New Hire Series']== 1811), 'PMCO'] = 'USSS Special Agent- 1811'
  6.  
  7. elastic.loc[~elastic['dl_comp_acr'].isnull(), 'org'] = elastic['dl_comp_acr']#where dl_comp_acr isnt null org is dl_comp_acr
  8.  
  9. eventcat.loc[(eventcat['idaction_event_category_name'] == 'download all') | (eventcat['idaction_event_category_name']== 'download selected'), 'type'] = 'downloadlog'
RAW Paste Data
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top