I have a dataframe of defaulted clients and their debt amounts, credit loans. The df has 558 entries, but only 350 unique clients. I want to group by and plot all kind of charts- build a typical "bad" client profile. I need to group by client id. A customer may have several defaulted loans.
clients = df_defaulted.groupby(['client_id'])
but it's not a df, it's a groupby object! How to use agg and other functions to get insights and plot charts? I only have drawn basic charts and they include repeating clients data - distribution by age, loan amount. there is repeating data crippling in my charts.
How to turn to normal df a groupby object and use aggregate functions?