Skip to content

Fix KeyError: 0 in _calculateGrowthFactor caused by pandas 3.0 positional indexing change#1

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/fix-keyerror-in-drug-screen
Closed

Fix KeyError: 0 in _calculateGrowthFactor caused by pandas 3.0 positional indexing change#1
Copilot wants to merge 2 commits intomainfrom
copilot/fix-keyerror-in-drug-screen

Conversation

Copy link

Copilot AI commented Mar 6, 2026

  • Identify root cause: pandas 3.0 changed series[0] to treat 0 as a label, not a position
  • Fix _calculateGrowthFactor in screenpro/assays/__init__.py: change [db_rate_col][0] to [db_rate_col].iloc[0] on lines 74-75
  • Rebased branch onto dev as requested

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…al indexing

Co-authored-by: abearab <53412130+abearab@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix KeyError when calculating drug screen Fix KeyError: 0 in _calculateGrowthFactor caused by pandas 3.0 positional indexing change Mar 6, 2026
@abearab
Copy link
Member

abearab commented Mar 6, 2026

@copilot change parent branch to dev

@abearab
Copy link
Member

abearab commented Mar 6, 2026

0fc302b

@abearab abearab closed this Mar 6, 2026
@abearab abearab deleted the copilot/fix-keyerror-in-drug-screen branch March 6, 2026 00:38
Copilot stopped work on behalf of abearab due to an error March 6, 2026 00:39
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.

2 participants