Fangrui Liu commited on
Commit
3e40ebd
Β·
1 Parent(s): 238d915

fixed empty source bug

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: