Suppose I have a string "03/25/93" which is in a pandas series. I want to find /93 first and then replace it with /1993. How do I go about it?
The pandas series is
03/25/93
6/18/85
7/8/71
9/27/75
2/6/96
I want this to be
03/25/1993
6/18/1985
7/8/1971
9/27/1975
2/6/1996
df.str.replace(r'[/]\d{2}$', '/19??')