How can we calculate the correlation and covariance of a given table without using cov and corr in Python3?