yashm commited on
Commit
8221fb4
·
verified ·
1 Parent(s): 868ac1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -77,7 +77,9 @@ def show_bar_chart(df):
77
  "Code": """
78
  def show_pair_plot(df):
79
  import seaborn as sns
80
- st.write(sns.pairplot(df))
 
 
81
  """
82
  },
83
  "Distribution Plot": {
 
77
  "Code": """
78
  def show_pair_plot(df):
79
  import seaborn as sns
80
+ numeric_columns = df.select_dtypes(include='number').columns
81
+ selected_columns = st.multiselect("Select numeric columns for the pair plot", numeric_columns)
82
+ st.write(sns.pairplot(df[selected_columns]))
83
  """
84
  },
85
  "Distribution Plot": {