pierrelf commited on
Commit
ef19888
·
1 Parent(s): b85cb6a

Fix DataFrame column names in wine function

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=['fixed acidity', 'volatile acidity', 'citric acid', 'residual sugar', 'chlorides', 'total sulfur dioxide', 'ph', 'sulphates', 'alcohol', 'type'])
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)