I am processing excel sheet with Pandas and checking if cells of each row with diff conditions. I am doing this by if and else for each cell. Is there any effective way to achieve this. Have some 30+ columns with diff checks to be processed. (few for dates, Nan, and others)
if pd.isnull(col[4]):
col[4] = 'NA'
else:
col[4] = datetime.strftime(col[4], '%m-%d')