How do i calculate the pearsons corr and Beta coefficient of every column in my dataframe against a dependent var
A B C D Sales
1 0 1 1 10
0 0 1 1 9
1 1 1 0 15
Here A~D are independent and Sales is dependent, i want to find the r and beta coefficient of every column(Attribute)