why do we check correlation between feature and target variable? 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'][:]