Skip to content

Instantly share code, notes, and snippets.

@kshirsagarsiddharth
Created January 3, 2022 07:19
Show Gist options
  • Save kshirsagarsiddharth/daf0c24a9062dc74b8586fb82d02749f to your computer and use it in GitHub Desktop.
Save kshirsagarsiddharth/daf0c24a9062dc74b8586fb82d02749f to your computer and use it in GitHub Desktop.
def scatter_plot_int(x = 'person_age',y = 'person_income'):
plt.figure(dpi = 120)
sns.set_style('whitegrid')
return sns.scatterplot(data = df, x = x,y = y, alpha = 0.6, ).set_title('Visualize Relation Between 2 Quantative Variables')
A = interact(scatter_plot_int,
x = widgets.Dropdown(
options = ['person_age','person_income','person_emp_length','loan_amnt','loan_int_rate','loan_percent_income','cb_person_cred_hist_length']
),
y = 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