Implement Data Retrieval and Transformation Logic (Steps 1-9)#1
Open
wekesawgodwin wants to merge 2 commits intolearn-co-curriculum:mainfrom
Open
Implement Data Retrieval and Transformation Logic (Steps 1-9)#1wekesawgodwin wants to merge 2 commits intolearn-co-curriculum:mainfrom
wekesawgodwin wants to merge 2 commits intolearn-co-curriculum:mainfrom
Conversation
Implemented SQL queries using sqlite3 and pandas to retrieve and transform employee and order data. Completed steps 5-9, which include: - Categorizing employee roles using CASE statements. - Applying string functions (LENGTH, SUBSTR) for data extraction. - Calculating and rounding total order amounts. - Formatting date strings using STRFTIME.
Implemented SQL queries using sqlite3 and pandas to retrieve and transform employee and order data. Completed steps 5-9, which include: - Categorizing employee roles using CASE statements. - Applying string functions (LENGTH, SUBSTR) for data extraction. - Calculating and rounding total order amounts. - Formatting date strings using STRFTIME.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR completes the remaining data analysis tasks in the SQLSelectLab.ipynb notebook. The focus of this work was on leveraging advanced SQL syntax within the sqlite3 and pandas environment to transform raw employee and order data into actionable reports.
Key Changes
Conditional Logic: Implemented a CASE statement to categorize employee seniority into Executive and Not Executive roles.
String Manipulation: Applied LENGTH() and SUBSTR() functions to process last names and generate abbreviated job titles.
Mathematical Operations: Created a calculated column for total order prices using arithmetic operators and the ROUND() function.
Date Formatting: Utilized STRFTIME() to parse and extract specific date components (Day, Month, Year) for international reporting standards.