Calculating correlation with rpy2

I spend some time trying to figure out how to use R via Rpy2. Here are a short python code that I used to calculate correlation using Rpy2 import rpy2.robjects as robjects def get_rcorr(floatData, n_rows, method=”spearman”): “”” floatData: list of floats, number of rows in the data matrix Hmisc library needs to be loaded beforeContinue reading “Calculating correlation with rpy2”