My issue right now is pretty simple i have the following dataset
And i want the path column to be aligned to it is specific pokemon, so basically if the path ends up in an pikachu image i want the Name row and the path row to also be the pikachu image path.
Here is my code and what i tried so far
for i in pok['Paths']:
split_path=i.split('/')
#print(split_path[5]
if split_path[5] == pok['Name'][0]:
pok['new_path'] == i
Unfurtunately i couldnt even make the first path equal..., that was my desperate attempt. Would appreciate any help