Loved by learners at thousands of companies
If you surveyed a large number of data scientists and data analysts about which tasks are most common in their workday, cleaning data would likely be in almost all responses. This is the case because real-world data is messy. To help you tame messy data, this course teaches you how to clean data stored in a PostgreSQL database. You’ll learn how to solve common problems such as how to clean messy strings, deal with empty values, compare the similarity between strings, and much more. You’ll get hands-on practice with these tasks using interesting (but messy) datasets made available by New York City's Open Data program. Are you ready to whip that messy data into shape?
Data Cleaning BasicsFree
In this chapter, you’ll gain an understanding of data cleaning approaches when working with PostgreSQL databases and learn the value of cleaning data as early as possible in the pipeline. You’ll also learn basic string editing approaches such as removing unnecessary spaces as well as more involved topics such as pattern matching and string similarity to identify string values in need of cleaning.Introduction to data cleaning50 xpDeveloping a data cleaning mindset50 xpApplying functions for string cleaning100 xpPattern matching50 xpClassifying parking violations by time of day100 xpMasking identifying information with regular expressions100 xpMatching similar strings50 xpMatching inconsistent color names100 xpStandardizing color names100 xpStandardizing multiple colors100 xpFormatting text for colleagues100 xp
Missing, Duplicate, and Invalid Data
You’ll learn how to write queries to solve common problems of missing, duplicate, and invalid data in the context of PostgreSQL database tables. Through hands-on exercises, you’ll use the COALESCE() function, SELECT query, and WHERE clause to clean messy data.Handling missing data50 xpQuantifying completeness50 xpUsing a fill-in value100 xpAnalyzing incomplete records100 xpHandling duplicated data50 xpDuplicate parking violations100 xpResolving impartial duplicates100 xpDetecting invalid values50 xpDetecting invalid values with regular expressions100 xpIdentifying out-of-range vehicle model years100 xpDetecting inconsistent data50 xpIdentifying invalid parking violations100 xpInvalid violations with overnight parking restrictions100 xpRecovering deleted data100 xp
Sometimes you need to convert data stored in a PostgreSQL database from one data type to another. In this chapter, you’ll explore the expressions you need to convert text to numeric types and how to format strings for temporal data.Data type conversions50 xpType conversion with a CASE clause100 xpApplying aggregate functions to converted values100 xpDate parsing and formatting50 xpCleaning invalid dates100 xpConverting and displaying dates100 xpTimestamp parsing and formatting50 xpExtracting hours from a time value100 xpA parking violation report by day of the month100 xpRisky parking behavior100 xp
In the final chapter, you’ll learn how to transform your data and construct pivot tables. Working with real-world postal data, you’ll discover how to combine and split addresses into city, state, and zip codes using a multitude of powerful functions including CONCAT(), SUBSTRING(), and REGEXP_SPLIT_TO_TABLE().Combining columns50 xpTallying corner parking violations100 xpCreating a TIMESTAMP with concatenation100 xpSplitting column data50 xpExtracting time units with SUBSTRING()100 xpExtracting house numbers from a string100 xpSplitting data with delimiters50 xpSplitting house numbers with a delimiter100 xpMapping parking restrictions100 xpCreating pivot tables50 xpSelecting data for a pivot table100 xpUsing FILTER to create a pivot table100 xpAggregating film categories100 xpCourse wrap-up50 xp
PrerequisitesData Manipulation in SQL
Darryl Reeves Ph.DSee More
Industry Assistant Professor, NYU Tandon School of Engineering
Darryl is a computational scientist with expertise in utilizing data-driven approaches to solve complex problems in both academic and business settings. He worked for a number of years in a variety of technical roles including software development and technology-based client services mostly within start-up organizations in the finance and online advertising industries. He has a love for technology and education and enjoys solving interesting problems across diverse domains.
Don’t just take our word for it
- David P.about 2 months
Anyone working towards Data Analysis certifications should take this course.
- DERMAIN B.3 months
- Uzooma O.4 months
Great intro course to postgresSQ)
- Marek W.11 months
I am very pleased with this programming course.
- Kwok M.3 days
Course was good, but lack more exercises. I would of prefered to be able to download the actual dataset that the course used as the link provided was updated and the columns and data are different.