Fix DataFrame column names in wine function
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def wine(fixed_acidity, volatile_acidity, citric_acid, residual_sugar, chlorides
|
|
20 |
type = 1
|
21 |
|
22 |
print("Calling function")
|
23 |
-
df = pd.DataFrame([[fixed_acidity, volatile_acidity, citric_acid, residual_sugar, chlorides, total_sulfur_dioxide, ph, sulphates, alcohol, type]], columns=['
|
24 |
|
25 |
print("Predicting")
|
26 |
print(df)
|
|
|
20 |
type = 1
|
21 |
|
22 |
print("Calling function")
|
23 |
+
df = pd.DataFrame([[fixed_acidity, volatile_acidity, citric_acid, residual_sugar, chlorides, total_sulfur_dioxide, ph, sulphates, alcohol, type]], columns=['fixed_acidity', 'volatile_acidity', 'citric_acid', 'residual_sugar', 'chlorides', 'total_sulfur_dioxide', 'ph', 'sulphates', 'alcohol', 'type'])
|
24 |
|
25 |
print("Predicting")
|
26 |
print(df)
|