vives commited on
Commit
006d9ab
·
1 Parent(s): abf2f3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,8 +32,8 @@ if xl1 is not None :
32
  with st.form("First excel file"):
33
  choices = []
34
  i = 0
35
- if new_df.shape[0] > num_kp:
36
- num_kp = new_df.shape[0]
37
  for t1 in new_df.sample(n=num_kp,random_state=42).iterrows():
38
  #for t1 in new_df.sample(n=10, random_state=42).iterrows():
39
  r1 = t1[1]
 
32
  with st.form("First excel file"):
33
  choices = []
34
  i = 0
35
+ if new_df.shape[0]-1 > num_kp:
36
+ num_kp = new_df.shape[0] - 1
37
  for t1 in new_df.sample(n=num_kp,random_state=42).iterrows():
38
  #for t1 in new_df.sample(n=10, random_state=42).iterrows():
39
  r1 = t1[1]