Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First Tasks: Data Preprocessing and Cleaning #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akansha050
Copy link

  1. Imports Libraries:
    • pandas
    • numpy
    • sklearn
    • matplotlib
  2. Reads CSV File:
    • Loads 'HR-Employee-Attrition.csv' into a DataFrame.
  3. Displays Data:
    • Shows the first few and last few rows.
    • Outputs the shape of the DataFrame.
    • Describes the DataFrame statistics.
    • Lists the columns.
    • Displays unique value counts and null values.
  4. Data Cleaning:
    • Drops specific columns: 'Over18', 'EducationField', 'Department', 'Attrition', 'BusinessTravel', 'Gender'.
    • Checks for duplicates.
  5. Data Visualization:
    • Plots a scatter plot of 'Age' vs 'Attrition' using Matplotlib.

1. Imports Libraries:
   - pandas
   - numpy
   - sklearn
   - matplotlib
2. Reads CSV File:
   - Loads 'HR-Employee-Attrition.csv' into a DataFrame.
3. Displays Data:
   - Shows the first few and last few rows.
   - Outputs the shape of the DataFrame.
   - Describes the DataFrame statistics.
   - Lists the columns.
   - Displays unique value counts and null values.
4. Data Cleaning:
   - Drops specific columns: 'Over18', 'EducationField', 'Department', 'Attrition', 'BusinessTravel', 'Gender'.
   - Checks for duplicates.
5. Data Visualization:
   - Plots a scatter plot of 'Age' vs 'Attrition' using Matplotlib.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant