Hello! I have a dataset with columns Q2_1 to Q2_7, each representing different demographic categories. Each row corresponds to a participant's selection of answers. For example, Q2_1 might represent White/Caucasian, Q2_2 might represent Black or African American, and so on. I need to create a new column that indicates if a specific demographic (e.g., White) was selected but another demographic (e.g., Black) was not. How can I accomplish this in my data analysis?
I have been trying this one, but it doesnt work:
![Screenshot 2024-11-18 at 11.47.54 AM.png Screenshot 2024-11-18 at 11.47.54 AM.png](/t5/image/serverpage/image-id/70348iAAC1F5127854442E/image-size/medium?v=v2&px=400)