Spaces:
Running
Running
Fangrui Liu
commited on
Commit
Β·
3e40ebd
1
Parent(s):
238d915
fixed empty source bug
Browse files
app.py
CHANGED
@@ -44,9 +44,9 @@ def try_eval(x):
|
|
44 |
|
45 |
|
46 |
def display(dataframe, columns_=None, index=None):
|
47 |
-
if index:
|
48 |
-
dataframe.set_index(index)
|
49 |
if len(dataframe) > 0:
|
|
|
|
|
50 |
if columns_:
|
51 |
st.dataframe(dataframe[columns_])
|
52 |
else:
|
|
|
44 |
|
45 |
|
46 |
def display(dataframe, columns_=None, index=None):
|
|
|
|
|
47 |
if len(dataframe) > 0:
|
48 |
+
if index:
|
49 |
+
dataframe.set_index(index)
|
50 |
if columns_:
|
51 |
st.dataframe(dataframe[columns_])
|
52 |
else:
|