Tag: cleaning

  • 1. Data cleaning (sorting and filtering) with Google Sheets

    1. Data cleaning (sorting and filtering) with Google Sheets

    Data cleaning based on a hands-on activity of Google Data Analytics Professional issued by Coursera

    Skills: #datacleaning #filtering #GoogleSheets

    Goal: understand how to improve the performance of students in a public school. Data source: reports and surveys of two public schools (named GP, MS). Information included in data: student grades, background information, study time, participation in extracurricular activities.

    Access to Google sheet file https://docs.google.com/spreadsheets/d/1lekmvxJDglmqUKxSxSk7TiA8Sfurqc9pTyKXIgUvNm4/template/preview?resourcekey=0-O8LBUyc6VTc9sYPH6hdsmw#gid=1019073941 to download and follow step by step

    Click on the top right corner (Use model) to get a working copy

    Rename the spreadsheet

    Before sorting, select all the data

    Sort from menu: Data->Sort Range->Advanced

    Then sort by school and by age

    To obtain

    Potential issue: scrolling through the data, you see that the age range of the students at GP school is 15-22 years, and the age range of the students at MS school is 15-20 years.

    Filtering to add a restraint: the age range should be 15-19 for both schools. Any student outside this age range should be deleted from the dataset: i.e. remove the ages 20, 21, and 22 from the dataset. To apply a filter to the age column, select the age column by clicking the letter at the top of the column.

    From the menu bar, select Data, then Create a filter

    Click on the filter icon (highlighted in yellow) to deselect 20, 21 and 22

    To obtain

    Turn off filter:  Data and Turn off filter

    Filling in missing data

    Student’s reason for choosing a specific school is important to know for this analysis: the reason column should be complete and without blanks. Apply a filter across the entire spreadsheet, clicking on any cell in the sheet. Then, from the menu bar, select Data and Create a filter.

    Click the Filter icon on the reason column (K). Filter this column for blanks by unchecking all the other values (course, home, reputation).

    Replace the missing values with the value, e.g. none_given. To do this while the column is still filtered for blanks, enter none_given in the first empty cell (K38). Then, press Enter. Immagine che contiene testo, schermata, Carattere, numero

Il contenuto generato dall'IA potrebbe non essere corretto.

    Double click the fill handle to fill all the other blank cells with the value none_given.

    Turn off filter