I have a text file of around 20 pages with around 200 paragraphs. Each paragraph contains three lines describing information about a person like so:
Name: John
Age: 26
Phone number: 123421
Name: Mary
Age: 80
Phone number: NA
...
Now I wish to convert this large file into a dataframe where the columns represent the three variables Name, Age and Phone number and where the rows correspond to the persons.
Name Age Phone number
John 26 123421
Mary 80 NA
... ... ...
How can I convert the large text file into such a dataframe?