This repo contains some examples of dealing with bad data using Delta Tables. The documentation for Delta Tables can be found here: Delta Tables
The accompanying Medium article with a detailed walkthrough of 3 methods in this repo can be found here: 3 Methods for Dealing with Bad Data
The notebooks work best if they are added into a Databricks workspace.