0% found this document useful (0 votes)
12 views3 pages

Mid-Term Project Data Wrangling Guide

The mid-term project involves gathering and wrangling datasets to address a specific problem statement. Students must gather at least two datasets using different methods, assess data quality and structural issues, clean the data, and update the data store with the cleaned data. The final submission requires exporting the notebook and packaging it into a zip file with specified contents.

Uploaded by

tdat1406
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views3 pages

Mid-Term Project Data Wrangling Guide

The mid-term project involves gathering and wrangling datasets to address a specific problem statement. Students must gather at least two datasets using different methods, assess data quality and structural issues, clean the data, and update the data store with the cleaned data. The final submission requires exporting the notebook and packaging it into a zip file with specified contents.

Uploaded by

tdat1406
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

MID-TERM PROJECT

Step 1: Gather Data (1 mark)


In order to wrangle data, the first thing we need to do is gather our datasets!

1.1. Problem Statement


In 2-4 sentences, explain the problem you want to look at and the datasets you will be
wrangling for this project.

Finding the right datasets can be time-consuming. Here we provide you with a list of
websites to start with. But we encourage you to explore more websites and find the
data that interests you.

Google Dataset Search [Link]


The US Government's open data [Link]
UCI Machine Learning Repository [Link]

1.2. Gather at least two datasets using two different data-gathering methods
In this part of the project, you'll gather two datasets using two different data-gathering
methods. Here's a list of the different methods you can pick from:

Download data manually


Programmatically downloading files
Gather data by accessing APIs
Gather and extract data from HTML files using BeautifulSoup
Extract data from a SQL database
In this section, you will also write notes in the Jupyter Notebook documenting why
you selected the datasets and what type of gathering methods you're using. The starter
file provides a template to write down this information.

Step 2: Assess Data


Now that we have gathered the datasets, let's assess the dataset for data quality and
structural issues.
Here's a list of the data quality attributes we covered in the course for your reference:
Completeness
Validity
Accuracy
Consistency
Uniqueness

Task List
Before going any further, make sure you've done the following:
 Find two data quality issues and two tidiness issues.
 For each data issue, assess the it visually and programmatically
 Briefly describe the issue you find.
 Include justifications for the methods you use for the assessment.
 Add code comments so your code is readable.

Step 3: Clean Data


It's time to address the issues found during assessment to clean and polish your data.
In this step, you'll clean the data to solve the issues corresponding to data quality and
tidiness found in the assess step. Make sure you include justifications for your cleaning
decisions.
After the cleaning for each issue, please use either the visual or programmatic method
to validate that the cleaning was successful.
Note: At this stage, you are also expected to remove unnecessary variables for your
analysis and combine your datasets. Depending on your datasets, you may choose to
perform variable combination and elimination before or after the cleaning stage. Your
dataset must have at least four variables after combining the data.

Task List
Before going any further, make sure you've done the following:
Clean all issues identified during the assessment.
For each issue, use either the visual or programmatic method to validate the cleaning.
Include justifications for the methods you use for the cleaning method.

Step 4: Update the Data Store


In this step, you'll update your database/data store with the cleaned data, following the
best practices we covered in the course for storing your cleaned data:
You must maintain different instances/versions of data (raw data and cleaned data)
You must name your dataset files informatively
Save raw and cleaned data to your database/data store
Note: You are not required to use a relational/non-relational database store.
Task List
Before going any further, make sure you've done the following:
Maintain at least two different instances of the data (raw and cleaned data).
Name dataset files informatively.
Save raw and cleaned data to your database/data store.

SUBMISSION
After completion, export the notebook as an HTML file for the project submission
using the File > Download as... > HTML or PDF menu options.
Submit file “[Link]” to Final Project includes:
1. my_Project.html
2. my _Project.ipynb

Common questions

Powered by AI

Gathering data programmatically implies leveraging automated scripts or tools to fetch datasets efficiently, thereby reducing time and labor costs associated with manual data collection. This method allows for seamless updates, scalability, and integration with various data sources, enabling regular and timely data refreshes. In contrast, manual data collection is labor-intensive and may introduce human error, though it might be necessary for datasets that require subjective interpretation or don't provide API access. The choice of method impacts the efficiency and sustainability of data collection processes .

Combining datasets after cleaning benefits the analysis by integrating different data points that enrich the dataset, offering a more comprehensive view and enabling complex analyses that may not be possible with single datasets. When combining datasets, considerations should include ensuring compatibility in terms of data types and structures, aligning common variables, and handling discrepancies or overlaps in data entries to avoid redundancies or inaccuracies. Proper combining enhances analytical power, supports diverse queries, and can provide new insights .

Justifying cleaning methods plays a crucial role in the data cleaning process as it provides clarity on why and how specific issues are addressed, ensuring methodological transparency and reproducibility. Justifications can involve explaining the choice of techniques based on the nature and context of the issues identified. Validation of cleaning methods can be conducted both visually and programmatically: visually through plots or data summaries that highlight anomalies before and after cleaning, and programmatically by running statistical checks to ensure consistency and correctness post-cleaning .

Issues related to tidiness in datasets can be visually assessed through exploratory analysis methods such as plots that reveal misaligned columns or inconsistent categorizations. Tables and matrices can also be inspected for improper row or column structuring. This visual assessment is crucial in the data wrangling process because it helps quickly identify and understand the organization of the data, facilitating appropriate transformations that streamline subsequent analyses. Properly tidying data ensures that it is in a consistent, organized format optimized for analysis .

Ensuring meaningful and informative naming of dataset files aids in data management and analysis by providing clear and immediate context about the contents of the files. This practice facilitates easier tracking, referencing, and organization of data files in a project. Informative naming helps prevent confusion, especially in collaborative settings, and supports the reproducibility and transparency of data analyses by making it straightforward for others to understand the information contained in each file without needing to open them .

Maintaining different instances of data, such as raw and cleaned data, is essential during the data storage update phase to ensure traceability and data integrity. Raw data acts as a reference point and a safeguard in case cleaning processes need to be reviewed or altered based on later insights or errors found. Cleaned data, on the other hand, is optimized for analysis and free of issues that could skew results. This separation allows analysts to backtrack changes, refine cleaning methodologies, and verify the impacts of data processing decisions .

The criteria for selecting datasets in data wrangling include relevance to the problem statement, completeness, credibility, and richness of the datasets in terms of variables and entries. Selecting the right datasets impacts the project's outcomes by determining the depth and quality of insights that can be drawn. Well-chosen datasets provide comprehensive, accurate representations necessary to address the problem statement effectively and to derive meaningful conclusions from analyses. Selection impacts both the initial framework and the eventual success of the project outcomes .

Two common types of data quality issues encountered during the data assessment phase are completeness and consistency. Completeness refers to the degree to which all required data is present within a dataset, while consistency deals with ensuring the data follows the same format and structure across all entries. To address completeness issues, one can check for missing values and employ imputation methods to fill in gaps. Consistency can be enhanced by standardizing formats, such as date and time, across the dataset. These steps ensure that the data is accurate and reliable for subsequent analysis .

Gathering datasets from various sources using different methods is crucial as it ensures a comprehensive collection of data that can provide different perspectives and insights. Using different methods, such as programmatically downloading files or accessing APIs, allows for flexibility in accessing the most relevant data. It also helps in dealing with the limitations or lack of accessibility of certain data sources. This diversity in data sources and methodologies enhances the robustness of the data wrangling process by ensuring data quality and richness, which can significantly impact the analysis outcomes .

Documenting the data wrangling process in a Jupyter Notebook is beneficial because it allows for combining code, visualizations, and narrative text in a single document, which aids in clear and comprehensive communication of the process. Features such as markdown support for structured text, inline code execution for real-time results, and visualization integration, help maintain clarity and context, making it easier to follow and understand the narrative and logic behind data manipulation and analysis decisions. This fosters reproducibility and collaborative work .

You might also like