I have a data frame that looks like this
 A      B      C
one    NULL   one
NULL   one    NULL
NULL   one    one
How to efficiency replace the Null with 0 and the "one" with 1? Please NOTE that I am not asking for how to replace NULL with 0, I am asking how to replace NULL with 0 AND "one" with 1 in an efficient way
 
    