def drop_disjoint(train, test):
    in_training = find(train.sum(0).A.flatten() != 0)
    train = train[:, in_training]
    test = test[:, in_training]
    in_test = find(test.sum(0).A.flatten() != 0)
    train = train[:, in_test]
    test = test[:, in_test]
    return sparse.vstack((train, test)).tocsr()
>>> db = get_connection('sqlite://')
dataset/ETHPy150Open theusual/kaggle-seeclickfix-ensemble/Miroslaw/data_transforms.py/drop_disjoint--crossover with--dataset/ETHPy150Open limodou/uliweb/test/test_generic.py/test_multi_view_basic