So I have a list of Data Stating the Place and Publisher of a Journal
The Data is given in a single Sentence in a List
['Place: Amsterdam Publisher: Elsevier Science Bv WOS:000179813800003' ,
'Place: Hanoi Publisher: Vietnam Acad Science & Technology-Vast WOS:000530921100003' ,
'Publisher: SAGE Publications Ltd',
'Place: London']
So as you can see in some strings Publisher is given but no place and some places it can be vice versa.
So I want the Output to be like in two lists
Places = ['Amsterdam','Hanoi','London']
Publishers = ['Elsevier Science',
'Vietnam Acad Science & Technology- Vast',
'SAGE Publications Ltd']
I am Using Python for this Data analysis..
I was thinking of using split() function to detect location of Place is written and chose the string next to it but it seems not to be working
My Code till Now
places=[]
for i in extrainfo : #E xtrainfo Name of Initial List
if ('Place') in i :
z=i
i=i.split()
counter=0
for q in i :
if q=='Place' :
break
counter=counter+1
places=pleaces+z[counter+1]
print(places)