Learn practical skills, build real-world projects, and advance your career
Updated 4 years ago
Feature Selection Techniques
import pandas as pd
df=pd.read_csv('mobile_dataset.csv')
df.head()
Univariate Selection
Higher the value of score ---> more important the feature is
#all variables should be in numberic type
#if categorical occurs then first do one-hot encoding on it then apply this
X=df.iloc[:,:-1]
y=df['price_range']
X.head()