Spaces:
Sleeping
Sleeping
empty dataframe
Browse files
app.py
CHANGED
@@ -160,7 +160,7 @@ if cobie_file_button:
|
|
160 |
tabs = cobie_file.sheet_names
|
161 |
|
162 |
selected_column = None
|
163 |
-
df = pd.DataFrame
|
164 |
|
165 |
if tabs:
|
166 |
selected_sheet = st.selectbox(
|
@@ -168,11 +168,13 @@ if tabs:
|
|
168 |
tabs,
|
169 |
)
|
170 |
|
171 |
-
|
|
|
|
|
172 |
|
173 |
if type(df) == pd.DataFrame:
|
174 |
|
175 |
-
|
176 |
columns = df.columns
|
177 |
selected_column = st.selectbox(
|
178 |
'Select column with revit ids',
|
|
|
160 |
tabs = cobie_file.sheet_names
|
161 |
|
162 |
selected_column = None
|
163 |
+
df = pd.DataFrame()
|
164 |
|
165 |
if tabs:
|
166 |
selected_sheet = st.selectbox(
|
|
|
168 |
tabs,
|
169 |
)
|
170 |
|
171 |
+
if selected_sheet:
|
172 |
+
|
173 |
+
df = cobie_file.parse(selected_sheet)
|
174 |
|
175 |
if type(df) == pd.DataFrame:
|
176 |
|
177 |
+
st.write(df)
|
178 |
columns = df.columns
|
179 |
selected_column = st.selectbox(
|
180 |
'Select column with revit ids',
|