I have a dataframe which contains 7800 rows and 2 columns. The columns are loan type and outstanding value. I am looking to print a dataframe which will provide me the loan types and the outstanding.
Loan_Type Outstanding_Value
Home Loan $500000
Auto Loan $3000
Home loan $300000
Over Draft $10000
Home Loan $100000
I tried using,
result=df['Loan_Type'].unique(),df['Outstanding_Value'].sum()