Add new column in Pandas DataFrame Python,df['Col3'] = (df['Col2'] <= 1).astype(int)