Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.88 KB | None | 0 0
  1. dhs_pmco = pmco.groupby(['New Hire Number','New Hire Series','Vacancy Number','Actual EOD Date','Step',
  2. 'Metric (Days)'],
  3.  
  4. as_index=False).agg({'Cases Metric Met':{'Sum Cases Metric Met': 'sum', 'Count Cases Metric Met': 'count'},
  5. 'Actual Days to Complete':{'Mean Actual Days to Complete': 'mean'},
  6. 'Unaccounted Days':{'Median Unaccounted Days': 'median'},
  7. 'Certificate Request Hiring Validation Date':{'Hiring Validation Date':'max'},
  8. 'Certificate Request Personnel Action Date' : {'Request Personell Action Date': 'max'},
  9. 'Certificate Vacancy Creation Date' :{'Vacancy Creation Date': 'max'},
  10. 'Announcement Review Completion Date' :{'Announcement Review Completion Date': 'max'},
  11. 'Announcement Open Date': {'Announcement Open Date': 'max'},
  12. 'Announcement Close Date' : {'Announcement Close Date': 'max'},
  13. 'Certificate Issue Date': {'Certificate Issue Date': 'max'},
  14. 'Certificate Review Sent Date' : {'Certificate Review Sent Date': 'max'},
  15. 'Certificate Review Returned Date' : {'Certificate Review Returned Date': 'max'},
  16. 'Send Tentative Offer Active Date': {'Send Tentative Offer Active Date': 'max'},
  17. 'Send Tentative Offer Complete Date': {'Send Tentative Offer Complete Date': 'max'},
  18. 'New Hire Job Offer Response Date/Time': {'Tentative Offer Response Date': 'max'},
  19. 'Initiate Background Investigation Complete Date': {'Initiate Background Investigation Complete Date': 'max'},
  20. 'Receive Background Investigation/Security Clearance Complete Date': {'Receive Background Investigation/Security Clearance Complete Date': 'max'},
  21. 'Send Official Offer Active Date': {'Send Official Offer Active Date': 'max'},
  22. 'Send Official Offer Complete Date': {'Send Official Offer Complete Date': 'max'},
  23. 'New Hire Job Offer Response Date/Time - FJO': {'Formal Offer Response Date': 'max'} })
  24.  
  25. dhs_pmco.columns = ["".join(x) for x in dhs_pmco.columns.ravel()]
  26.  
  27. dhs_pmco.rename(columns={'Cases Metric MetSum Cases Metric Met': 'Cases Metric Met',
  28. 'Cases Metric MetCount Cases Metric Met': 'Total Cases',
  29. 'Actual Days to CompleteMean Actual Days to Complete': 'Actual Days to Complete',
  30. 'Unaccounted DaysMedian Unaccounted Days': 'Unaccounted Days',
  31. 'Certificate Request Hiring Validation DateHiring Validation Date': 'Hiring Validation Date',
  32. 'Certificate Request Personnel Action DateRequest Personell Action Date':'Personnel Action Date',
  33. 'Certificate Vacancy Creation DateVacancy Creation Date':'Vacancy Creation Date',
  34. 'Announcement Review Completion DateAnnouncement Review Completion Date':'Announcement Review Completion Date',
  35. 'Announcement Open DateAnnouncement Open Date': 'Announcement Open Date',
  36. 'Announcement Close DateAnnouncement Close Date': 'Announcement Close Date',
  37. 'Certificate Issue DateCertificate Issue Date': 'Certificate Issue Date',
  38. 'Certificate Review Sent DateCertificate Review Sent Date':'Certificate Review Sent Date',
  39. 'Certificate Review Returned DateCertificate Review Returned Date':'Certificate Review Returned Date',
  40. 'Send Tentative Offer Active DateSend Tentative Offer Active Date': 'Send Tentative Offer Active Date',
  41. 'Send Tentative Offer Complete DateSend Tentative Offer Complete Date': 'Send Tentative Offer Complete Date',
  42. 'New Hire Job Offer Response Date/TimeTentative Offer Response Date': 'Receive Tentative Offer Response Date',
  43. 'Initiate Background Investigation Complete DateInitiate Background Investigation Complete Date': 'Initiate Background Investigation Complete Date',
  44. 'Receive Background Investigation/Security Clearance Complete DateReceive Background Investigation/Security Clearance Complete Date': 'Receive Background Investigation/Security Clearance Results Date',
  45. 'Send Official Offer Active DateSend Official Offer Active Date': 'Send Official Offer Active Date',
  46. 'Send Official Offer Complete DateSend Official Offer Complete Date': 'Send Official Offer Complete Date',
  47. 'New Hire Job Offer Response Date/Time - FJOFormal Offer Response Date': 'Receive Formal Offer Response Date'},
  48. inplace=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement