Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. i = (example_data['outstanding_balance'].eq(0)
  2. .groupby(example_data['contract_no']).transform('idxmax'))
  3.  
  4. j = (example_data['maturity_date'].eq(example_data['date_report_created'])
  5. .groupby(example_data['contract_no']).transform('idxmax'))
  6.  
  7. i.eq(j).view('i1')
  8.  
  9. 0 1
  10. 1 1
  11. 2 0
  12. 3 0
  13. 4 0
  14. 5 0
  15. dtype: int8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement