Each dataset is a column and all the datasets combined to make a CSV. It get read as a 2D array
by numpy.genfromtxt()
and then call numpy.corrcoef()
to get correlation coefficients.
Note: you should also consider the same data layout, but using pandas
. Read CSV into a dataframe
by pandas.read_csv()
and get the correlation coefficients by .corr()