Borya-Goldarb commited on
Commit
b86553b
·
verified ·
1 Parent(s): 1d57362

Update pages/comps_data.py

Browse files
Files changed (1) hide show
  1. pages/comps_data.py +23 -6
pages/comps_data.py CHANGED
@@ -128,20 +128,37 @@ def main():
128
 
129
  col_3_1, col_3_2 = st.columns(2)
130
  with col_3_1:
131
- # c1 = st.container(height=120)
132
- # df_data_checkbox = add_checkbox_column(df_data)
 
 
 
 
 
133
  st.data_editor(
134
- df_data_checkbox,
135
  column_config={
136
- "Select rows": st.column_config.CheckboxColumn(
137
  "Your favorite?",
138
  help="Select your **favorite** widgets",
139
  default=False,
140
  )
141
  },
142
- # disabled=[df_data.columns],
143
  hide_index=True,
144
- )
 
 
 
 
 
 
 
 
 
 
 
 
145
 
146
  with col_3_2:
147
  c2 = st.container(height=120)
 
128
 
129
  col_3_1, col_3_2 = st.columns(2)
130
  with col_3_1:
131
+ data_df = pd.DataFrame(
132
+ {
133
+ "widgets": ["st.selectbox", "st.number_input", "st.text_area", "st.button"],
134
+ "favorite": [True, False, False, True],
135
+ }
136
+ )
137
+
138
  st.data_editor(
139
+ data_df,
140
  column_config={
141
+ "favorite": st.column_config.CheckboxColumn(
142
  "Your favorite?",
143
  help="Select your **favorite** widgets",
144
  default=False,
145
  )
146
  },
147
+ disabled=["widgets"],
148
  hide_index=True,
149
+ )
150
+ # st.data_editor(
151
+ # df_data_checkbox,
152
+ # column_config={
153
+ # "Select rows": st.column_config.CheckboxColumn(
154
+ # "Your favorite?",
155
+ # help="Select your **favorite** widgets",
156
+ # default=False,
157
+ # )
158
+ # },
159
+ # # disabled=[df_data.columns],
160
+ # hide_index=True,
161
+ # )
162
 
163
  with col_3_2:
164
  c2 = st.container(height=120)