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