diff --git a/src/biocgenerics/combine.py b/src/biocgenerics/combine.py index be45a82..08b645f 100644 --- a/src/biocgenerics/combine.py +++ b/src/biocgenerics/combine.py @@ -71,7 +71,6 @@ def _combine_sparse(*x): pass - if is_package_installed("pandas") is True: from pandas import DataFrame, Series diff --git a/src/biocgenerics/combine_rows.py b/src/biocgenerics/combine_rows.py index 6235eca..447d6a5 100644 --- a/src/biocgenerics/combine_rows.py +++ b/src/biocgenerics/combine_rows.py @@ -108,7 +108,7 @@ def _combine_rows_sparse_arrays(*x): return _generic_combine_rows_dense_sparse(x) raise ValueError("All elements must be 2-dimensional matrices.") - + try: combine_rows.register(sp.sparray, _combine_rows_sparse_arrays) except Exception: