Skip to content

Instantly share code, notes, and snippets.

@kshirsagarsiddharth
Created January 3, 2022 07:21
Show Gist options
  • Save kshirsagarsiddharth/2d7b29d962b73c843136f662da3ff5f8 to your computer and use it in GitHub Desktop.
Save kshirsagarsiddharth/2d7b29d962b73c843136f662da3ff5f8 to your computer and use it in GitHub Desktop.
def univariate_hist(x = 'person_age'):
plt.figure(dpi = 130)
sns.set_style('whitegrid')
return sns.kdeplot(x = x, data = df, fill=True, palette = 'crest').set_title('Univariate visualization of Quantative Variable')
C = interact(univariate_hist,
x = widgets.Dropdown(
options = ['person_age','person_income','person_emp_length','loan_amnt','loan_int_rate','loan_percent_income','cb_person_cred_hist_length']
)
)
interactive(children=(Dropdown(description='x', options=('person_age', 'person_income', 'person_emp_length', '…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment