Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- temp = []
- for value in my_dataframe[my_col]:
- match = my_regex.search(value)
- if match:
- temp.append(value.replace(match.group(1),'')
- else:
- temp.append(value)
- temp = [value.replace(match.group(1)),'' if (match) else value for
- value in my_dataframe[my_col] if my_regex.search(value)]
Add Comment
Please, Sign In to add comment