Skip to content

Avoid chained assignment when filling spectrum columns - #138

Open
LAZARUSj wants to merge 2 commits into
MannLabs:mainfrom
LAZARUSj:codex/fix-pandas-fillna-warning
Open

Avoid chained assignment when filling spectrum columns#138
LAZARUSj wants to merge 2 commits into
MannLabs:mainfrom
LAZARUSj:codex/fix-pandas-fillna-warning

Conversation

@LAZARUSj

@LAZARUSj LAZARUSj commented Sep 1, 2026

Copy link
Copy Markdown

Summary

  • replace chained Series.fillna(..., inplace=True) with explicit column assignment
  • keep the existing fill-value and dtype behavior
  • add a regression test that treats FutureWarning as an error

Tests

  • python -m pytest tests/unit/test_ms_data_base.py -q
  • python -m ruff format --check alpharaw/ms_data_base.py tests/unit/test_ms_data_base.py
  • python -m ruff check alpharaw/ms_data_base.py tests/unit/test_ms_data_base.py

Fixes #105.

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.

FutureWarning if df[col].fillna(inplace=True) in alpharaw

1 participant