Closed CSFelix closed 1 year ago
Part of the Code:
import datetime
sales['Formatted Date'] = pd.to_datetime(sales['Date'], format='%d/%m/%y')
sales.head()
Create the Following Feature:
BUDGET TOTAL EXPENSES = BUDGET MARGIN - BUDGET PROFIT
Add this new feature aside Budget Profit
sales.insert(loc=12, column='Budget Total Expenses', value=sales['Budget Margin'] - sales['Budget Profit'])
To lower categorical features.