I try to create a function to generate dummy variables, but I find the column name cannot be recognized when I create a trail function.
here is my code: