Skip to content

Commit 29ca516

Browse files
Update employee_attrition.py
1 parent 69d4bc1 commit 29ca516

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Employee/employee_attrition.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999
df
100100

101101
#Split the data into independent 'X' and dependent 'Y' variables
102-
X = df.iloc[:, 1:df.shape[1]].values #Notice I started from index 2 to 31, essentially removing the id column & diagnosis
103-
Y = df.iloc[:, 0].values #Get the target variable 'diagnosis' located at index=1
102+
X = df.iloc[:, 1:df.shape[1]].values
103+
Y = df.iloc[:, 0].values
104104

105105
# Split the dataset into 75% Training set and 25% Testing set
106106
from sklearn.model_selection import train_test_split
@@ -135,4 +135,4 @@
135135
importances
136136

137137
#Visualize the importance
138-
importances.plot.bar()
138+
importances.plot.bar()

0 commit comments

Comments
 (0)