1. Given a dataframe df as shown below :