Line 162 in pipes.py should change from: data=X.todense() to data = X.toarray() Thanks so much for this package, it's amazing!