Simulating Slowly Changing Dimension Type 2 (SCD2) in PySpark

Introduction: