Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
Employee Turnover Prediction code
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2022-298
Employee Turnover Prediction code
Commits
3d624130
Commit
3d624130
authored
Apr 08, 2022
by
Withanage Malith Pinsara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
5fec7a7a
Pipeline
#5460
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
README.md
README.md
+25
-0
No files found.
README.md
View file @
3d624130
# Employee Turnover Prediction code
#import the Libraries
import numpy as np
import pandas as pd
import sys
import sklearn
import matplotlib
import matplotlib.pyplot as plt
%matplotlib inline
import seaborn as sns
#load and display the shape of the dataset.
df = pd.read_csv("WA_Fn-UseC_-HR-Employee-Attrition.csv")
print("The Shape of the dataset is : ", df.shape)
#first 5 rows of the df
df.head()
#last 5 rows of the df
df.tail()
#info about the features/columns in df
df.info()
# Values distribution of the label column (target) in df
df["Attrition"].value_counts()
#statistical info about the numeric columns
df.describe()
# check missing values in df ?
print('Sum of Missing values in the dataset:')
df.isna().sum()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment