Question: Provide the regex code that would be required to meet the task presented. Working in Python intro and not sure how to write a program
Provide the regex code that would be required to meet the task presented. Working in Python intro and not sure how to write a program for this scenario. Thanks for your help.
(Scenario) That spreadsheet is my nightmare. I currently work as an MDM analyst and we have to fix "dirty data". The format of the data has to be the same for filtering, vlookups, and things like that. If we must search customer based on business needs, there needs to be a column for marketing with maybe a Duns & Bradstreet line of business code. The name has a title sometimes and other times it does not, which continues the bad data. Member dates have a different format each time and the same with the phone number. The states are sometimes spelled out and sometimes abbreviated. Gender is listed twice on the spreadsheet, which is obviously not needed. First and foremost, I would ask IT to cleanup that data and standardize it. Cleaning up the data first will allow for doing more things with it in the future.
(Data) Name Gender SSN Member Date Phone State Zip Email Credit Card Credit Card_Number Credit Card Exp Gender Favorite Radio Station Purchases Past 30 Days Spent Past 30 Days Purchases Past 6 Months Spent Past 6 Months Purchases Past 12 Months Spent Past 12 Months
Mamie Mason female 459-69-6647 Mon Aug 01 2016 12:06:01 GMT-0400 (Eastern Daylight Time) 9472284457 Indiana 82439-3619 m.masonason@gig.org Visa 4263xxxxxxxx1913 23-Sep female WMMZ 4 $2,149.81 7 $5,188.75 9 $10,756.50
Dr. Jorge Leonard male 267-90-8144 10/17/2015 (482) 962-5537 Pennsylvania 44795 j.leonardeonard@leiwauhi.gov American Express 3430xxxxxxx6344 22-Jun male WLRS 4 $1,510.68 5 $3,679.59 15 $11,241.27
Sue Robertson female 431-17-5882 Fri Jun 03 2016 01:34:30 GMT-0400 (Eastern Daylight Time) (387) 395-7066 Virginia 97198 s.robertsonobertson@odejo.co American Express 3446xxxxxxx4624 21-Sep female WING 4 $2,094.67 9 $6,289.29 13 $11,071.11
Gilbert Houston male 469-80-8860 Wed May 02 2012 00:45:29 GMT-0400 (Eastern Daylight Time) 5776043558 Kentucky 59108-0390 g.houstonouston@fuzsi.co Mastercard 5149xxxxxxxx7215 26-Jul male WOGV 0 $0 5 $3,167.44 6 $6,928.30
and many more!!!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
