binarizeDF a simple function for binarize a python df Arguments: df: a pandas dataframe threshold: a number. Values higher than this number will be translated as 1, otherwise 0