Skip to content

Instantly share code, notes, and snippets.

Last active January 28, 2020 13:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# importing required libraries
import pandas as pd
from sklearn.compose import ColumnTransformer
from sklearn.impute import SimpleImputer
import category_encoders as ce
from sklearn.preprocessing import StandardScaler
from sklearn.ensemble import RandomForestRegressor
from sklearn.pipeline import Pipeline
# read the training data set
data = pd.read_csv('dataset/train_kOBLwZA.csv')
# top rows of the data
# seperate the independent and target variables
train_x = data.drop(columns=['Item_Outlet_Sales'])
train_y = data['Item_Outlet_Sales']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment