I have a dataframe like this,
ID   F/P     FTE Actual     FTE Calculated
1    F       100              100
2    F       110              110
3    P       90               100
4    P       90               90
I want to generate the result column
if FTE Actual is not equal to FTE Calculated then result is FALSE and we don't check any further.
if true, then we look into F/P column, if F/P column has a value of F, then the FTE_Calculated should be equal to 100.
if true, then we look into F/P column, if F/P column has a value of P, then the FTE_Calculated should be less than 100.
ID   F/P     FTE Actual     FTE Calculated   Expected Result
1    F       100              100                 True
2    F       110              110                 False (as it is more than 100)
3    P       90               100                 False
4    P       90               90                  True
 
     
    