Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- df_jobs['Salary from'] = df_jobs['Salary'].str.extract('([0-9]+)')
- df_jobs['Salary from'] = df_jobs['Salary from'].astype(float)
- df_jobs.head()
- df_jobs['Salary to'] = df_jobs['Salary'].str.findall(r'([-+]?\d*\.\d+|\d+)').str[-1]
- df_jobs['Salary to'] = df_jobs['Salary to'].astype(float)
- df_jobs.head()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement