Using .expr() and arithmetics: how to add multiple (calculated) columns to dataframe within one expression
Using .expr() and arithmetics: how to add multiple (calculated) columns to dataframe within one expression Question: So I have a spark dataframe with some columns and I want to add some new columns which are the product of the initial columns: new_col1 = col_1 * col_2 & new_col2 = col_3 * col_4. See the data …