Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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 = [
|
| 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 |
|