Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i = (example_data['outstanding_balance'].eq(0)
- .groupby(example_data['contract_no']).transform('idxmax'))
- j = (example_data['maturity_date'].eq(example_data['date_report_created'])
- .groupby(example_data['contract_no']).transform('idxmax'))
- i.eq(j).view('i1')
- 0 1
- 1 1
- 2 0
- 3 0
- 4 0
- 5 0
- dtype: int8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement