I used following condition to prepare a dataframe for analysis.
def DAYS(DF_FRAME_NAME): if (DF_FRAME_NAME[\'Column1\'] == \'Yes\' and (DF_FRAME_NAME[\'DAYS\'