Day 6 notebook to illustrate use of apply and lambda