Spaces:
Sleeping
Sleeping
embed if statement further
Browse files
app.py
CHANGED
@@ -187,25 +187,25 @@ if tabs:
|
|
187 |
columns,
|
188 |
)
|
189 |
|
190 |
-
|
191 |
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
|
210 |
|
211 |
|
|
|
187 |
columns,
|
188 |
)
|
189 |
|
190 |
+
if selected_column:
|
191 |
|
192 |
+
# df['COBieGUID'] = df.apply(compress)
|
193 |
+
df[selected_column] = df.apply(
|
194 |
+
revit_id_to_guid,
|
195 |
+
column=selected_column,
|
196 |
+
axis=1
|
197 |
+
)
|
198 |
|
199 |
+
st.markdown(
|
200 |
+
download_button(
|
201 |
+
df,
|
202 |
+
'IFC_GUIDs.xlsx',
|
203 |
+
'Download IFC GUIDs sheet',
|
204 |
+
pickle_it=False,
|
205 |
+
),
|
206 |
+
unsafe_allow_html=True,
|
207 |
+
)
|
208 |
+
st.markdown(download_button(df, 'COBieIDs.xlsx', 'Download COBieIDs.xlsx'), unsafe_allow_html=True)
|
209 |
|
210 |
|
211 |
|