Sasidhar commited on
Commit
9975064
1 Parent(s): 496ba11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -203,7 +203,9 @@ def create_for_bivariate_analysis(selected_files, df, i):
203
  key= "bivariate_target_column_" + str(i))
204
  bivariate_columns = st.multiselect("Select the columns to analyse ", df.columns.values,
205
  key= "bivariate_analysis_columns_" + str(i))
 
206
  for col in bivariate_columns:
 
207
  st.write(pd.crosstab(df[target_column], df[col], margins=True))
208
  # 3 any other aggregation function can be used based on column type
209
 
 
203
  key= "bivariate_target_column_" + str(i))
204
  bivariate_columns = st.multiselect("Select the columns to analyse ", df.columns.values,
205
  key= "bivariate_analysis_columns_" + str(i))
206
+
207
  for col in bivariate_columns:
208
+ st.subheader(f"{col} --> {target_column}")
209
  st.write(pd.crosstab(df[target_column], df[col], margins=True))
210
  # 3 any other aggregation function can be used based on column type
211