GithubHelp home page GithubHelp logo

vaibhavgosai / data-cleaning-using-excel Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 44 KB

Performing data cleaning using Excel functions to prepare the data for analysis and visualization.

datacleaning dataexploration excel

data-cleaning-using-excel's Introduction

Overview

In this project, we aimed to clean the 'Raw file US Presidents' Excel dataset obtained from Kaggle. The dataset contains information about the Presidents of the United States, including:

  • S.No.: Serial number.
  • President: Name of the President.
  • Prior: The primary position or role held before becoming President.
  • Party: The political party affiliation.
  • Vice: The Vice President during their presidency.
  • Salary: The salary received during their presidency.
  • Date Updated: The last date the information was updated.
  • Date Created: The date the record was created. The dataset contained various inconsistencies such as duplicate entries, inconsistent capitalization, irregular date formats, and redundant data. The following steps outline the process of cleaning the data using Excel functionalities.

Steps Taken

Step 1: Duplicate File Creation and Initial Inspection

To ensure the safety of the original data, we first created a duplicate file to perform our cleaning operations. This duplicate file serves as a backup for the original dataset.

Step 2: Checking for Duplicates

Under the Data tab, we utilized the 'Remove Duplicates' feature to identify and eliminate duplicate entries from the dataset. This helped in streamlining the data and removing redundant information.

Step 3: Cleaning the 'Party' Column

The 'party' column exhibited various inconsistencies such as different spellings, hyphens, random dates, and blank entries. We applied filters to the column and manually corrected the entries to ensure uniformity and accuracy.

Step 4: Standardizing Data Formats

  • Utilized the Trim function to remove extra spaces in the 'vice' column, ensuring consistency.
  • Changed the data type of the 'salary' column from 'Currency' to 'Number' to facilitate seamless import into SQL. This step is crucial to avoid issues with special characters like '$' in SQL queries.
  • Standardized the date formats in the 'date updated' and 'date created' columns by selecting the 'Short Date' cell format, resolving inconsistencies in date representation.

Step 5: Removing Redundant Data

Identified and removed redundant columns such as 'prior' and the first column with numerical indices, which did not provide meaningful information for analysis. This step helped streamline the dataset and improve clarity.

Conclusion

By systematically applying various Excel functionalities and manual corrections, we successfully cleaned the 'Raw file US Presidents' dataset. The cleaned dataset is now ready for further analysis or integration into other platforms, ensuring data integrity and accuracy.

data-cleaning-using-excel's People

Contributors

vaibhavgosai avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.