Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for x in df['seller']:
- counter = 0
- for y in automobile:
- if y in x:
- counter += 1
- for z in automobile:
- if z in x:
- counter += 1
- else:
- counter += 0
- else:
- counter += 0
- if counter == 1:
- df[x] = y
- else:
- df[x] = x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement