Currently stuck with this syntax error, error is posted below the code.
@property
def data_rows(self):
    for d in rlgenevautils.to_csv_dict(self.data_file):
        trade_dt  = rlcore.str2dt(d['EventDate'])
        settle_dt = rlcore.str2dt(d['ActualSettleDate'])
        yield (str(d['_UDF_SGCP_ID_'])
              ,str(d['_UDF_Execution_ID_'])
              ,str(d['_UDF_PB_ID_'])
              ,str(d['_UDF_Fund_Admin_ID_'])
              ,str(d['_Portfolio_NameSort_'])
              ,str(d['_Strategy_Code_'])
              ,str(d['_LocationAccount_NameSort_'])
              ,str(d['_Broker_NameSort_'])
              ,str(d['_Investment_Code_'])
              ,trade_dt.isoformat(' ')
              ,settle_dt.isoformat(' ')
              ,rlcore.str2float(d['ABSQuantityForCalcCurrentFace'])
              ,max(rlcore.str2float(d['ABSQuantityForCalcCurrentFace']),rlcore.str2float(d['OriginalFace']))
              ,rlcore.str2float(d['ABSQuantityForCalcCurrentFace'])/max(rlcore.str2float(d['ABSQuantityForCalcCurrentFace']),rlcore.str2float(d['OriginalFace']))
              ,rlcore.str2float(d['Price'])
              ,rlcore.str2float(d['ABSAccruedInterestForCalcCurrentFace'])
              ,if str(d['_Investment_InvestmentGroup_']) == "AssetBacked":
                   rlcore.str2float(d['ABSQuantityForCalcCurrentFace']) * rlcore.str2float(d['Price']) / 100
               else:
                   rlcore.str2float(d['NetCashAmount'])
              ,rlcore.str2float(d['ABSAccruedInterestForCalcCurrentFace']) + rlcore.str2float(d['txtNetCashPreAccrued'])
              )
Traceback (most recent call last):
    File ".\sg\rec_and_liquidity\geneva_trade.py", line 64
      ,if str(d['_Investment_InvestmentGroup_']) == "AssetBacked":
       ^
Code above, unable to figure out what my syntax error is on the if statement. Error message will be pasted as comment shortly
 
     
     
    