I have a surveys' answers from the participants in a pandas dataframe:
['A', 'B', 'C', 'A' ...],
['D', 'B', 'B', 'A' ...],
......................
['D', 'C', 'C', 'A' ...]]
and I have a vector of keys to the survey:
['D', 'B', 'B', 'A' ...]
I need to get a dataframe which displays the boolean results of survey like:
[0, 1, 0, 1 ...],
[1, 1, 1, 1 ...],
......................
[1, 0, 0, 1 ...]]
I've tried to use pd.get_dummies(users_answ, keys) but that seems wrong