From d09886bdbf2db8a52a7534ef6f583130c27c8baf Mon Sep 17 00:00:00 2001 From: RAYMOND Olivier <34789438+Isdinval@users.noreply.github.com> Date: Thu, 6 Jun 2024 23:11:33 +0200 Subject: [PATCH] Update dashboard_CLOUD.py --- dashboard_CLOUD.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard_CLOUD.py b/dashboard_CLOUD.py index 3205805..9ef6702 100644 --- a/dashboard_CLOUD.py +++ b/dashboard_CLOUD.py @@ -346,7 +346,7 @@ def main(): # Data preparation for bivariate plot def prepare_bivariate_data(customer_data, feature1, feature2): # Extract data for the current customer - customer_data = customer_data[customer_data['SK_ID_CURR'] == sk_id_curr] + # customer_data = customer_data[customer_data['SK_ID_CURR'] == sk_id_curr] # Select and prepare features feature1_values = customer_data[feature1] feature2_values = customer_data[feature2] @@ -371,7 +371,7 @@ def generate_bivariate_plot(feature1_values, feature2_values): # Generate bivariate plot when a button is clicked # if st.button("Generate Bivariate Plot"): - feature1_values, feature2_values = prepare_bivariate_data(customer_data, feature1, feature2) + feature1_values, feature2_values = prepare_bivariate_data(customer_data_copy, feature1, feature2) generate_bivariate_plot(feature1_values, feature2_values)