powered by
Two dataframes from one of the "get" functions recommended, but works with any dataframe that shares columns as well as column lengths.
findcor(a, b, sdata)
The correlation as a single numeric.
First dataframe
Second dataframe
A string of the column name to compare
findcor(SPYdaily, GMEdaily, "returns")
Run the code above in your browser using DataLab