Using names = df['Name and Location'].str.split(',', expand=True)
I am able to split this dense data at delimiters like colons.
I'm stuck on how to recombine the data into a flatter record. I've tried:
pd.concat([df, names])
Records end at "complaint #", and begin at date: which is in another column.
Date: 1999/12/29
**Last_Name , First_Name**
City: City_Name
County: OUT_OF_STATE
Zip Code: 00000
License #: AA0000000
Complaint # AA00000000000
Date: 1999/03/01
**Company:** Company_Name,_INC
City: City_Name
County: County_Name
Zip Code: 00000
Company: Company_Name LIC AA0000
City: City_Name
County: County_Name
Zip Code: 00000
License: string_or_int
Complaint # AA00000000000
Date: 1999/05/04
**Last_Name**, First_Name
Company: Company_Name
City: City_Name
County: County_Name
Zip Code: 00000
License #: AA00000000000
Complaint # AA00000000000
Ideally, each "record" would ultimately be flat, like:
First Name Last Name Company City County Zip Code License Complaint Date
Last_name_1 First_name_1 Company_Name_1 City_1 County_1 00001 AA000000 1999/12/29