I have dataframe like :
datetime sensor1 sensor2
String Int64 Int64
1 2021-09-28 13:36:04 626 570
2 2021-09-28 13:36:04 622 571
3 2021-09-28 13:36:05 620 574
4 2021-09-28 13:36:06 619 578
I would like to get correlation coefficient score between column sensor1 and sensor2 on the above dataframe.
For example, in Python, I can do it as :
cor = np.corrcoef(data.sensor1[0:] , data.sensor2[0:])[0,1]
How can I get the correlation coefficient in Julia?