Skip to content

Fix: Replace deprecated delim_whitespace with sep=r"\s+" for pandas >= 2.2#15

Open
Jah-yee wants to merge 1 commit intoGfellerLab:masterfrom
Jah-yee:fix/pandas-delim-whitespace
Open

Fix: Replace deprecated delim_whitespace with sep=r"\s+" for pandas >= 2.2#15
Jah-yee wants to merge 1 commit intoGfellerLab:masterfrom
Jah-yee:fix/pandas-delim-whitespace

Conversation

@Jah-yee
Copy link

@Jah-yee Jah-yee commented Mar 19, 2026

What

pandas >= 2.2 removed the delim_whitespace keyword argument from pd.read_csv(), causing a TypeError crash before any predictions can be made.

Fix

Replace delim_whitespace=True with sep=r"\s+" which provides equivalent whitespace delimiting behavior.

Files changed

  • code/main.py line 210
  • code/main_sequences.py line 261
  • code/MixMHCpred.py line 190

Testing

Tested locally with pandas 2.3.3 (the version mentioned in the issue).

Fixes #14

…= 2.2

pandas >= 2.2 removed the delim_whitespace keyword argument from pd.read_csv(),
causing a TypeError crash before any predictions can be made. This replaces
delim_whitespace=True with sep=r'\s+' which provides equivalent whitespace
delimiting behavior.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: pandas >= 2.2 removed the delim_whitespace keyword argument from pd.read_csv()

1 participant