Getting “ValueError: array must not contain infs or NaNs” even after checking that NaN and infs are 0
I’ve a data frame of 2942 rows and 52 columns. One of the columns is the target variable and the other columns are features. I’m trying to calculate Pearson’s correlation between the feature column(s) and the target variable column (for one feature at a time).