For example, I imported a dataset from excel looks like this with just one column and many rows, with repeated information such as name, phone and title:
table
---------
0 name1
1 phone1
2 title1
3 name2
4 phone2
5 title2
6 name3
7 phone3
8 title3
And I want to build a table from this with 3 columns name, phone, title and extract that information into this new table. such as:
name phone title
name1 phone1 title1
name2 phone2 title2
and such... How should I approach this problem? I'm using Python with Jupyter Notebook.
++ So here, all name/phone/title are different words, for example, names can be Sarah Kim, Andrew m. white, Mike yesman. Phone can be 111-222-3333, 333-444-5555, and so on. And I have more than 500+ rows, so my first try is trying to use REGEX to separate name, phone, and title. I am using pandas dataframe, and I wanted to learn how to approach problems like this, rather than just getting the code.