I have a pandas dataframe with column “x”, “y”, and “z”. I want to group by column “x” and find the average occurrence of the value “a” in column “y” per group. Also only count the occurrences when the value in “z” is not “b”.
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence