cand[~cand[\'Candidate Party\'].str.contains("Democrat|Republican"), \'Candidate Party\'] = "Other"
I have that line of code abo