Is there a way to map column values using a dictionary that does not include all columns. E.g:
Let's say my dataframe is:
A B C D E F
nan nan nan nan nan nan
and I have a dictionary which I would like to use as a mapper:
d = {'A': 1, 'B': 1, 'E': 1}
so the output should be replacing by 0 those values that are not in the dictionary
A B C D E F
1 1 0 0 1 0