Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #extract value from text column into new column with regex pattern
- df['new_col'] = df['string_col'].str.extract((r'(DV.+\d*)MSRP'), expand=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement