With pandas .corr()
print(f"pearson = ",combine_df_2_num_2['noOfNetCredit'].corr(combine_df_2_num_2['medianBalance'], method='pearson'))
I am getting output "pearson = 0.2130989508716667"
But in pandas profile I am getting very high correlation for the same variable pair as 0.955.
pandas version
1.4.4
pandas_profiling version
3.2.0
With pandas .corr() print(f"pearson = ",combine_df_2_num_2['noOfNetCredit'].corr(combine_df_2_num_2['medianBalance'], method='pearson')) I am getting output "pearson = 0.2130989508716667"
But in pandas profile I am getting very high correlation for the same variable pair as 0.955.
pandas version 1.4.4 pandas_profiling version 3.2.0
I am not able to understand why this difference.