Retheesh commited on
Commit
dfeab4d
·
verified ·
1 Parent(s): 13923fb

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -130,7 +130,7 @@ def predict_sales():
130
  input_df['Product_Broad_Category'] = input_df['Product_Id'].apply(lambda x: x[:2])
131
 
132
  # Create 'MRP_Category'
133
- mrp_bins = [df['Product_MRP'].min(), 100, 200, df['Product_MRP'].max()]
134
  mrp_labels = ['Low', 'Medium', 'High']
135
  input_df['MRP_Category'] = pd.cut(input_df['Product_MRP'], bins=mrp_bins, labels=mrp_labels, include_lowest=True)
136
 
 
130
  input_df['Product_Broad_Category'] = input_df['Product_Id'].apply(lambda x: x[:2])
131
 
132
  # Create 'MRP_Category'
133
+ mrp_bins = [input_df['Product_MRP'].min(), 100, 200, input_df['Product_MRP'].max()]
134
  mrp_labels = ['Low', 'Medium', 'High']
135
  input_df['MRP_Category'] = pd.cut(input_df['Product_MRP'], bins=mrp_bins, labels=mrp_labels, include_lowest=True)
136