dataframe replace() is not working inside function

welcome to shbcf.ru