kingwombat
New Member
- Joined
- Apr 6, 2020
- Messages
- 3
- Office Version
- 2019
- Platform
- Windows
I was hoping someone would be able to assist me with a question regarding parsing data. I have some information that I want to parse to columns. However, the data is inconsistent. Normally, if the data was uniform and consistent, I could have easily used text to columns.
Here's a sample of the data:
I want to parse the data into the following columns:
If someone could help me out, it would mean a lot.
Here's a sample of the data:
properties |
{'document_type': 'driving_licence', 'date_of_expiry': '2021-10-26', 'issuing_country': 'ITA'} |
{'gender': 'Female', 'document_type': 'driving_licence', 'date_of_expiry': '2022-01-17', 'issuing_country': 'GBR'} |
{'gender': 'Male', 'nationality': 'ITA', 'document_type': 'passport', 'date_of_expiry': '2019-12-03', 'issuing_country': 'ITA'} |
{'document_type': 'driving_licence', 'date_of_expiry': '2025-09-18', 'issuing_country': 'IRL'} |
{'gender': 'Female', 'document_type': 'driving_licence', 'date_of_expiry': '2025-03-05', 'issuing_country': 'GBR'} |
{'nationality': 'DEU', 'document_type': 'national_identity_card', 'date_of_expiry': '2026-01-03', 'issuing_country': 'DEU'} |
{'gender': 'Female', 'nationality': 'NLD', 'document_type': 'national_identity_card', 'date_of_expiry': '2017-06-12', 'issuing_country': 'NLD'} |
{'gender': 'Female', 'document_type': 'national_identity_card', 'date_of_expiry': '2020-08-20', 'issuing_country': 'ESP'} |
{'document_type': 'driving_licence', 'date_of_expiry': '2022-01-24', 'issuing_country': 'LTU'} |
{'gender': 'Male', 'nationality': 'PHL', 'document_type': 'passport', 'date_of_expiry': '2022-01-24', 'issuing_country': 'PHL'} |
{'gender': 'Male', 'nationality': 'GBR', 'document_type': 'passport', 'date_of_expiry': '2018-11-10', 'issuing_country': 'GBR'} |
{'gender': 'Male', 'document_type': 'driving_licence', 'issuing_state': 'CA', 'date_of_expiry': '2020-03-23', 'issuing_country': 'USA'} |
{'gender': 'Male', 'nationality': 'IRL', 'document_type': 'passport', 'date_of_expiry': '2024-11-03', 'issuing_country': 'IRL'} |
{'gender': 'Female', 'document_type': 'driving_licence', 'date_of_expiry': '2019-06-12', 'issuing_country': 'GBR'} |
{'gender': 'Female', 'nationality': 'ITA', 'document_type': 'passport', 'date_of_expiry': '2023-10-03', 'issuing_country': 'ITA'} |
{'gender': 'Male', 'nationality': 'ESP', 'document_type': 'national_identity_card', 'date_of_expiry': '2024-06-23', 'issuing_country': 'ESP'} |
{'document_type': 'driving_licence', 'date_of_expiry': '2017-08-23', 'issuing_country': 'SWE'} |
{'gender': 'Male', 'nationality': 'FRA', 'document_type': 'passport', 'date_of_expiry': '2024-08-05', 'issuing_country': 'FRA'} |
{'gender': 'Female', 'nationality': 'FRA', 'document_type': 'passport', 'date_of_expiry': '2023-11-13', 'issuing_country': 'FRA'} |
{'gender': 'Female', 'nationality': 'ZAF', 'document_type': 'passport', 'date_of_expiry': '2026-03-15', 'issuing_country': 'ZAF'} |
{'gender': 'Male', 'nationality': 'ESP', 'document_type': 'national_identity_card', 'date_of_expiry': '2019-04-28', 'issuing_country': 'ESP'} |
{'gender': 'Female', 'document_type': 'national_identity_card', 'issuing_country': 'ZAF'} |
{'gender': 'Male', 'nationality': 'AUT', 'document_type': 'national_identity_card', 'date_of_expiry': '2027-03-26', 'issuing_country': 'AUT'} |
{'gender': 'Male', 'nationality': 'BEL', 'document_type': 'national_identity_card', 'date_of_expiry': '2025-04-03', 'issuing_country': 'BEL'} |
{'gender': 'Male', 'nationality': 'BEL', 'document_type': 'national_identity_card', 'date_of_expiry': '2025-04-03', 'issuing_country': 'BEL'} |
{'gender': 'Female', 'nationality': 'GBR', 'document_type': 'passport', 'date_of_expiry': '2024-06-26', 'issuing_country': 'GBR'} |
{'gender': 'Female', 'nationality': 'MEX', 'document_type': 'passport', 'date_of_expiry': '2018-11-11', 'issuing_country': 'MEX'} |
{'gender': 'Female', 'nationality': 'MAR', 'document_type': 'passport', 'date_of_expiry': '2020-12-22', 'issuing_country': 'MAR'} |
{'gender': 'Male', 'nationality': 'PRT', 'document_type': 'national_identity_card', 'date_of_expiry': '2019-11-23', 'issuing_country': 'PRT'} |
{'gender': 'Male', 'document_type': 'national_identity_card', 'issuing_country': 'SGP'} |
{'gender': 'Male', 'nationality': 'TUR', 'document_type': 'passport', 'date_of_expiry': '2023-09-29', 'issuing_country': 'TUR'} |
I want to parse the data into the following columns:
gender | nationality | document_type | date_of_expiry | issuing_country | issuing_date | issuing_state | document_version |
If someone could help me out, it would mean a lot.