Created
January 3, 2022 07:19
-
-
Save kshirsagarsiddharth/daf0c24a9062dc74b8586fb82d02749f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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