Skip to content

Interesting Problems with Pandas Versions in INMOOSE #120

Description

@stevenjbark

I previously used the PyComBat library, but this has been migrated to INMOOSE. The problem I encountered is that Pandas versions are not compatible with INMOOSE.

Using Pandas=2.2.3, when importing
from inmoose.pycombat import pycombat_norm, pycombat_seq

I get a long list error culminating in ModuleNotFoundError: No module named 'pandas.core.index'.

I found a reference in StackOverflow indicating that the pandas.core.index was removed in Pandas>2.0.0, so I needed to downgrade. Once I downgraded to Pandas=1.5.3, this error was removed. HOWEVER, there is a new error when I tried to output a pandas dataframe using the .to_csv('filename') function: ModuleNotFoundError: No module named 'pandas.io.formats.csvs'.

So either I can use Pandas=1.5.3 to import the PyComBat functions without the ability to export the dataframes, or I can use Pandas=2.2.3 without the ability to use the PyComBat functions at all.

Please advise on this conundrum.

Best,
Steve Bark
Bioinformatics Analyst
Baylor College of Medicine

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions