title: converting continuous column to binary in python based on some condition
body: <p>i want to convert one column of my dataframe to binary categorical of 0 and 1 based on some condition.THreshold is 4.If values of that particular column are above 4,1 should be assigned else 0</p>
  
  <p>How to do this?</p>