Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -73,6 +73,7 @@ disease_dict = {
|
|
73 |
|
74 |
# Function to prepare data
|
75 |
def prepare_data(df):
|
|
|
76 |
X = df.iloc[:, :-1] # Features
|
77 |
y = df.iloc[:, -1] # Target
|
78 |
label_encoder = LabelEncoder()
|
|
|
73 |
|
74 |
# Function to prepare data
|
75 |
def prepare_data(df):
|
76 |
+
"""Prepares data for training/testing."""
|
77 |
X = df.iloc[:, :-1] # Features
|
78 |
y = df.iloc[:, -1] # Target
|
79 |
label_encoder = LabelEncoder()
|