Spaces:
Sleeping
Sleeping
Update pages/comps_data.py
Browse files- pages/comps_data.py +8 -5
pages/comps_data.py
CHANGED
|
@@ -130,22 +130,25 @@ def main1():
|
|
| 130 |
with col_3_1:
|
| 131 |
# c1 = st.container(height=120)
|
| 132 |
# df_data_checkbox = add_checkbox_column(df_data)
|
| 133 |
-
|
| 134 |
st.data_editor(
|
| 135 |
df_data_checkbox,
|
| 136 |
column_config={
|
| 137 |
-
"Select rows": st.column_config.CheckboxColumn(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
},
|
| 139 |
-
disabled=[
|
| 140 |
hide_index=True,
|
| 141 |
-
)
|
| 142 |
|
| 143 |
with col_3_2:
|
| 144 |
c2 = st.container(height=120)
|
| 145 |
c2.write('Comps list:')
|
| 146 |
c2.write(filtered_data)
|
| 147 |
|
| 148 |
-
def
|
| 149 |
data_df = pd.DataFrame(
|
| 150 |
{
|
| 151 |
"widgets": ["st.selectbox", "st.number_input", "st.text_area", "st.button"],
|
|
|
|
| 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)
|
| 148 |
c2.write('Comps list:')
|
| 149 |
c2.write(filtered_data)
|
| 150 |
|
| 151 |
+
def main1():
|
| 152 |
data_df = pd.DataFrame(
|
| 153 |
{
|
| 154 |
"widgets": ["st.selectbox", "st.number_input", "st.text_area", "st.button"],
|