Skip to content

Commit

Permalink
Update dashboard_CLOUD.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Isdinval authored Jun 6, 2024
1 parent 236a99e commit d09886b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboard_CLOUD.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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)


Expand Down

0 comments on commit d09886b

Please sign in to comment.