Answers for "edit line if str end with pandas"

4

edit line if str end with pandas

df.loc[df.stime.str.endswith('+2'), 'edate'] = pts['sdate']+1
Posted by: Guest on May-14-2021

Python Answers by Framework

Browse Popular Code Answers by Language