I have a list which has the following:
["ID : 1234 Name: John Exam Code:5678", "ID : 4566 Name: Jack Learning Code: 5678", "ID : 5678 Name: Helen Exam Code: 5435"]
Each item in the list have same headers like "ID" and "Name" but some have "Exam Code" and Others have "Learning Code"
How do I convert it into a DataFrame which shows me the following output:
| ID | Name | Exam Code | Learning Code |
|---|---|---|---|
| 1234 | John | 5678 | |
| 4566 | Jack | 5678 | |
| 5678 | Helen | 5435 |
UPDATED QUERY:
Apologies, Some of the data may also have first name and last name e.g ["ID : 1234 Name: John Black Exam Code:5678", "ID : 4566 Name: Jack Learning Code: 5678", "ID : 5678 Name: Helen Exam Code: 5435"]
SO how can we deal with this ?
| ID | Name | Exam Code | Learning Code |
|---|---|---|---|
| 1234 | John Black | 5678 | |
| 4566 | Jack | 5678 | |
| 5678 | Helen | 5435 |