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 10ee1cc commit 553eb7d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dashboard_CLOUD.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def main():
# COMPARATIVE ANALYSIS USING GRAPHS
# ========================================================================
st.header('Comparative Analysis')

st.subheader('Univariate Analysis')
# Get all features (assuming numerical features)
all_features = customer_data_copy.select_dtypes(include=[np.number]) # Adjust for categorical features if needed
# Filter controls
Expand Down Expand Up @@ -402,7 +402,8 @@ def main():
# =========================================================================
# BIVARIATE GRAPHS
# ========================================================================

st.subheader('Bivariate Analysis')

# Feature selection (assuming UI elements are already defined)
all_features = customer_data_copy.select_dtypes(include=[np.number]) # Adjust for categorical features if needed
feature1 = st.selectbox('Select Feature 1:', all_features.columns, index=all_features.columns.get_loc('AMT_INCOME_TOTAL'))
Expand Down Expand Up @@ -439,7 +440,7 @@ def generate_bivariate_plot(feature1_values, feature2_values, customer_data, sk_


# Create the plot
sns.scatterplot(x=feature1_values, y=feature2_values)
sns.scatterplot(x=feature1_values, y=feature2_values, color='grey')
plt.xlabel(feature1)
plt.ylabel(feature2)
plt.title(f"Bivariate Analysis: {feature1} vs. {feature2}")
Expand Down

0 comments on commit 553eb7d

Please sign in to comment.