Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
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 |
|