I am trying to figure out how to create a new column for my df and cant seem to get it to work with what I have tried.
I have tried using
loans_df.insert("Debt_Ratio",["MonthlyDebt"*12/"Income"])
but I keep getting an error stating unsupported operand type.
BTW I am calculating the new column using already predefined columns in my df
loans_df.insert("Debt_Ratio",["MonthlyDebt"*12/"Income"])
My expected results would be that this new column is inserted into the df with the specific calculation defining it.
Hope this all makes sense!