treasuremars commited on
Commit
6d1d632
·
verified ·
1 Parent(s): 7c39edc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,12 +7,12 @@ df = df[['drug_name', 'medical_condition', 'side_effects']]
7
  df.dropna(inplace=True)
8
 
9
  context_data = []
10
- for i in range(500):
11
  context = ""
12
  for j in range(3):
13
  context += df.columns[j]
14
  context += ": "
15
- context += df.iloc[i][j]
16
  context += " "
17
  context_data.append(context)
18
 
 
7
  df.dropna(inplace=True)
8
 
9
  context_data = []
10
+ for i in range(len(df)):
11
  context = ""
12
  for j in range(3):
13
  context += df.columns[j]
14
  context += ": "
15
+ context += str(df.iloc[i][j])
16
  context += " "
17
  context_data.append(context)
18