cols = df.columns
for i in cols:
    for j in cols.drop(i):
        print(('percent of', j, 'not null if', i, 'is not null:', (df[i].
            notnull() & df[j].notnull()).sum() / df[i].notnull().sum()))
Find co-occurrence of columns in dataframe