Spaces:
Sleeping
Sleeping
Update pages/comps_data.py
Browse files- pages/comps_data.py +18 -32
pages/comps_data.py
CHANGED
|
@@ -123,38 +123,24 @@ with col_2_2:
|
|
| 123 |
# Add the second button on the right side
|
| 124 |
with col_2_3:
|
| 125 |
st.button("Right Button")
|
| 126 |
-
if option == ":rainbow[On]":
|
| 127 |
-
# max_column_width = 600
|
| 128 |
-
col_3_1, col_3_2 = st.columns(2)
|
| 129 |
-
with col_3_1:
|
| 130 |
-
# c1 = st.container(height=120)
|
| 131 |
-
# df_data_checkbox = add_checkbox_column(df_data)
|
| 132 |
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
},
|
| 138 |
-
disabled=["widgets"],
|
| 139 |
-
hide_index=True,
|
| 140 |
-
)
|
| 141 |
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
# )
|
| 156 |
-
with col_3_2:
|
| 157 |
-
c2 = st.container(height=120)
|
| 158 |
-
c2.write('Comps list:')
|
| 159 |
-
c2.write(filtered_data)
|
| 160 |
|
|
|
|
| 123 |
# Add the second button on the right side
|
| 124 |
with col_2_3:
|
| 125 |
st.button("Right Button")
|
| 126 |
+
# if option == ":rainbow[On]":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
|
| 128 |
+
col_3_1, col_3_2 = st.columns(2)
|
| 129 |
+
with col_3_1:
|
| 130 |
+
# c1 = st.container(height=120)
|
| 131 |
+
# df_data_checkbox = add_checkbox_column(df_data)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
|
| 133 |
+
st.data_editor(
|
| 134 |
+
df_data_checkbox,
|
| 135 |
+
column_config={
|
| 136 |
+
"Select rows": st.column_config.CheckboxColumn(required=True),
|
| 137 |
+
},
|
| 138 |
+
disabled=["widgets"],
|
| 139 |
+
hide_index=True,
|
| 140 |
+
)
|
| 141 |
+
|
| 142 |
+
with col_3_2:
|
| 143 |
+
c2 = st.container(height=120)
|
| 144 |
+
c2.write('Comps list:')
|
| 145 |
+
c2.write(filtered_data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
|