The link to the solution for last challenge #34 is HERE. For this challenge let’s practice some data cleansing.
Use Case: There is a series of data cleansing processes we need to do on our data. Please solve each per the instructions.
Objective:
- Remove leading zeroes
- Trim leading zeroes and/or descriptive text at the end
- If the data value ends with ID, remove the ID
- If more than 8 chars, remove anything after 8. If only 6, add “SC” to the front.