Do you need to use Pandas? It seems that this can be done through numpy quite easily. Did I misunderstand the task?
import numpy X = {"A":[34,12,78,84,26], "B":[54,87,35,25,82], "C":[56,78,0,14,13], "D":[0,23,72,56,14], "E":[78,12,31,0,34]} Y = {"A":[45,24,65,65,65], "B":[45,87,65,52,12], "C":[98,52,32,32,12], "D":[0,23,1,365,53], "E":[24,12,65,3,65]} for key,value in X.items(): print "correlation stats for %s is %s" % (key, numpy.corrcoef(value,Y[key]))