stephenleo commited on
Commit
418c4bc
1 Parent(s): fd1ed1c

adding row limit

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -40,7 +40,10 @@ def main():
40
  data = data[selected_cols]
41
  data = data.dropna()
42
  data = data.reset_index(drop=True)
43
- st.write(f'Number of papers: {len(data)}')
 
 
 
44
  st.write('First 5 rows of loaded data:')
45
  st.write(data[selected_cols].head())
46
 
 
40
  data = data[selected_cols]
41
  data = data.dropna()
42
  data = data.reset_index(drop=True)
43
+ st.write(f'Number of rows: {len(data)}')
44
+ if len(data) > 1000:
45
+ data = data.iloc[:1000]
46
+ st.write(f'Only first 1000 rows will be analyzed')
47
  st.write('First 5 rows of loaded data:')
48
  st.write(data[selected_cols].head())
49