I was studying Python and ran into the following statement for pandas:
humans['Education'] = (humans[
'Years of post-secondary education (e.g. BA=4; Ph.D.=10)'] .str.replace(r'.*=','').astype(int))
I understand it creates additional column but not sure about replace(r'.*=','')
function.