CSFelix / Sales-Prediction

🌱 Predicting Number of Sales per Product 🌱
GNU General Public License v3.0
8 stars 0 forks source link

🔍 Exploratory Analysis #5

Closed CSFelix closed 1 year ago

CSFelix commented 1 year ago

Find a way to take off the time into Date Feature:

DD/MM/YY HH:mm:ss 

TO

DD/MM/YY
CSFelix commented 1 year ago

Part of the Code:

import datetime

sales['Formatted Date'] = pd.to_datetime(sales['Date'], format='%d/%m/%y')
sales.head()
CSFelix commented 1 year ago

Create the Following Feature:

BUDGET TOTAL EXPENSES = BUDGET MARGIN - BUDGET PROFIT
CSFelix commented 1 year ago

Add this new feature aside Budget Profit

CSFelix commented 1 year ago
sales.insert(loc=12, column='Budget Total Expenses', value=sales['Budget Margin'] - sales['Budget Profit'])
CSFelix commented 1 year ago

To lower categorical features.