Given the following dataframe. How can I change all hab type to "ungrazed" where Study area is equal to "B". It seems I would need to use an apply function, but I can't seem to unravel the correct construction. Thanks in advance.Given the following dataframe. How can I change