1
$\begingroup$

I have a loan dataset (300MB) that comes from the Lending Club and I would like to know how has the average interest rate of a loan varied over time. I have the int_rate column but I'm not familiar enough with the names to know how much a debt varies.

    Unnamed: 0  id  member_id   loan_amnt   funded_amnt funded_amnt_inv term    int_rate    installment grade   sub_grade   emp_title   emp_length  home_ownership  annual_inc  verification_status issue_d loan_status pymnt_plan  url desc    purpose title   zip_code    addr_state  dti delinq_2yrs earliest_cr_line    inq_last_6mths  mths_since_last_delinq  mths_since_last_record  open_acc    pub_rec revol_bal   revol_util  total_acc   initial_list_status out_prncp   out_prncp_inv   total_pymnt total_pymnt_inv total_rec_prncp total_rec_int   total_rec_late_fee  recoveries  collection_recovery_fee last_pymnt_d    last_pymnt_amnt next_pymnt_d    last_credit_pull_d  collections_12_mths_ex_med  mths_since_last_major_derog policy_code application_type    annual_inc_joint    dti_joint   verification_status_joint   acc_now_delinq  tot_coll_amt    tot_cur_bal open_acc_6m open_act_il open_il_12m open_il_24m mths_since_rcnt_il  total_bal_il    il_util open_rv_12m open_rv_24m max_bal_bc  all_util    total_rev_hi_lim    inq_fi  total_cu_tl inq_last_12m    acc_open_past_24mths    avg_cur_bal bc_open_to_buy  bc_util chargeoff_within_12_mths    delinq_amnt mo_sin_old_il_acct  mo_sin_old_rev_tl_op    mo_sin_rcnt_rev_tl_op   mo_sin_rcnt_tl  mort_acc    mths_since_recent_bc    mths_since_recent_bc_dlq    mths_since_recent_inq   mths_since_recent_revol_delinq  num_accts_ever_120_pd   num_actv_bc_tl  num_actv_rev_tl num_bc_sats num_bc_tl   num_il_tl   num_op_rev_tl   num_rev_accts   num_rev_tl_bal_gt_0 num_sats    num_tl_120dpd_2m    num_tl_30dpd    num_tl_90g_dpd_24m  num_tl_op_past_12m  pct_tl_nvr_dlq  percent_bc_gt_75    pub_rec_bankruptcies    tax_liens   tot_hi_cred_lim total_bal_ex_mort   total_bc_limit  total_il_high_credit_limit  revol_bal_joint sec_app_earliest_cr_line    sec_app_inq_last_6mths  sec_app_mort_acc    sec_app_open_acc    sec_app_revol_util  sec_app_open_act_il sec_app_num_rev_accts   sec_app_chargeoff_within_12_mths    sec_app_collections_12_mths_ex_med  sec_app_mths_since_last_major_derog hardship_flag   hardship_type   hardship_reason hardship_status deferral_term   hardship_amount hardship_start_date hardship_end_date   payment_plan_start_date hardship_length hardship_dpd    hardship_loan_status    orig_projected_additional_accrued_interest  hardship_payoff_balance_amount  hardship_last_payment_amount    disbursement_method debt_settlement_flag    debt_settlement_flag_date   settlement_status   settlement_date settlement_amount   settlement_percentage   settlement_term
0   1040017 NaN NaN 14000   14000   14000.0 36 months   12.69   469.63  C   C2  Receiving Dock Worker   9 years MORTGAGE    40000.0 Not Verified    2015-10-01  Charged Off n   NaN NaN debt_consolidation  Debt consolidation  166xx   PA  17.07   0.0 Jun-2001    1.0 NaN NaN 5.0 0.0 5848    90.0    15.0    f   0.0 0.0 6057.790000 6057.79 4091.51 1556.41 0.0 409.87  73.7766 Oct-2016    469.63  NaN Jul-2018    0.0 NaN 1   Individual  NaN NaN NaN 0.0 0.0 119776.0    NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 6500.0  NaN NaN NaN 4.0 23955.0 2167.0  90.0    0.0 0.0 141.0   172.0   3.0 3.0 1.0 3.0 NaN 3.0 NaN 0.0 3.0 3.0 8.0 8.0 6.0 3.0 8.0 3.0 5.0 NaN 0.0 0.0 2.0 100.0   100.0   0.0 0.0 123292.0    29809.0 6500.0  25992.0 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN N   NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN Cash    N   NaN NaN NaN NaN NaN NaN
1   1050463 NaN NaN 1000    1000    1000.0  36 months   9.17    31.88   B   B2  Portfolio Manager   1 year  MORTGAGE    80000.0 Verified    2015-10-01  Fully Paid  n   NaN NaN credit_card Credit card refinancing 949xx   CA  12.51   0.0 Oct-1967    3.0 NaN 22.0    9.0 1.0 7634    37.2    32.0    w   0.0 0.0 1021.730000 1021.73 999.99  21.74   0.0 0.00    0.0000  Feb-2016    27.85   NaN Feb-2017    0.0 NaN 1   Individual  NaN NaN NaN 0.0 0.0 53994.0 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 20500.0 NaN NaN NaN 4.0 5999.0  12866.0 37.2    0.0 0.0 188.0   575.0   4.0 4.0 3.0 4.0 NaN 1.0 NaN 0.0 3.0 3.0 6.0 16.0    9.0 6.0 20.0    3.0 9.0 0.0 0.0 0.0 3.0 100.0   0.0 1.0 0.0 80788.0 53994.0 20500.0 60288.0 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN N   NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN Cash    N   NaN NaN NaN NaN NaN NaN
...

I have a dictionnary to understand the headers:

enter image description here

$\endgroup$
7
  • $\begingroup$ I can't answer you but (if numbers and other values are important) wouldn't it be more useful for readability, to rewrite the pre formatted block transposing columns and rows? $\endgroup$
    – 42510
    Sep 10, 2019 at 14:29
  • $\begingroup$ @john Yes, I've been thinking about that, but I think there's a risk that the columns will get so wide because of the names that it will become unreadable. $\endgroup$ Sep 10, 2019 at 14:43
  • 1
    $\begingroup$ There is not a risk that it will become unreadable, because it is. There is the risk that it will become readable, however. $\endgroup$
    – 42510
    Sep 10, 2019 at 14:46
  • $\begingroup$ @john I get it, you're right. I'll try to do that. I added the dictionary link if you're more talented than me $\endgroup$ Sep 10, 2019 at 14:59
  • 1
    $\begingroup$ @ThePassenger some loans may have variable rates, but fixed rates are more common, and I don't see anything int he data that would give you any indication of what the rate history is. $\endgroup$
    – D Stanley
    Sep 10, 2019 at 16:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.