Skip to content

Instantly share code, notes, and snippets.

@kshirsagarsiddharth
Created January 3, 2022 07:25
Show Gist options
  • Save kshirsagarsiddharth/4137e4be096e5ddd42741deb32a64fda to your computer and use it in GitHub Desktop.
Save kshirsagarsiddharth/4137e4be096e5ddd42741deb32a64fda to your computer and use it in GitHub Desktop.
A = interactive(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']
)
)
B = interactive(scatter_plot_int_with_hue,
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']
),
hue = widgets.Dropdown(
options = ['person_home_ownership', 'loan_intent', 'loan_grade','cb_person_default_on_file','loan_status']
)
)
C = interactive(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']
)
)
D = interactive(univariate_hist_with_hue,
x = widgets.Dropdown(
options = ['person_age','person_income','person_emp_length','loan_amnt','loan_int_rate','loan_percent_income','cb_person_cred_hist_length']
),
hue = widgets.Dropdown(
options = ['person_home_ownership', 'loan_intent', 'loan_grade','cb_person_default_on_file','loan_status']
)
)
hbox1 = widgets.HBox([widgets.Label('One'), A,B])
hbox2 = widgets.HBox([widgets.Label('Two'),C,D])
widgets.VBox([hbox1, hbox2])
VBox(children=(HBox(children=(Label(value='One'), interactive(children=(Dropdown(description='x', options=('pe…
F = interact(interactive_crosstab,
index = widgets.Dropdown(
options = ['person_home_ownership', 'loan_intent', 'loan_grade','cb_person_default_on_file','loan_status']
),
column = widgets.Dropdown(
options = ['person_home_ownership', 'loan_intent', 'loan_grade','cb_person_default_on_file','loan_status'],
index = 1
)
)
interactive(children=(Dropdown(description='index', options=('person_home_ownership', 'loan_intent', 'loan_gra…
E = interact(visualize_pivot_tables,
index = widgets.Dropdown(
options = ['person_home_ownership', 'loan_intent', 'loan_grade','cb_person_default_on_file','loan_status']
),
column = widgets.Dropdown(
options = ['person_home_ownership', 'loan_intent', 'loan_grade','cb_person_default_on_file','loan_status'],
index = 1
),
values = widgets.Dropdown(
options = ['person_age','person_income','person_emp_length','loan_amnt','loan_int_rate','loan_percent_income','cb_person_cred_hist_length'],
index = 3
),
axis = widgets.RadioButtons(options = [('Row',0),('Columns',1)])
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment