Edx course problem - creating new column, applying function


I appreciate it's an online course, but the pointers in the homework link still apply. In particular, points 1 and 3 at the bottom of the link.

If you post a reproducible example, then you will have a much better chance of somebody being able to help you.