correlation with target pandas code example
Example 1: python correlation between features and target
df.corr()['Target']
Example 2: check correlation of each column with the target in python
df[df.columns[1:]].corr()['LoanAmount'][:]
df.corr()['Target']
df[df.columns[1:]].corr()['LoanAmount'][:]