how to check correlation row wise in python code example Example: check correlation of each column with the target in python df[df.columns[1:]].corr()['LoanAmount'][:]