Pandas DataFrame.corr() raises exception if two columns have no common values
For example:
     A    B
0   1    NaN
1   1    NaN
2   1    NaN
3   NaN 1
4   NaN 1
5   NaN 1

In DataFrame.corr() it only checks for valid.all(). It needs to check for valid.any() also.
