Skip to content

Bugfix: plot_bargraph errors out if result df is empty#630

Merged
petraszd merged 3 commits intomasterfrom
petras/dev-11620-pyodide-web-worker-error-runtimeerror-coroutine-raised
Apr 29, 2026
Merged

Bugfix: plot_bargraph errors out if result df is empty#630
petraszd merged 3 commits intomasterfrom
petras/dev-11620-pyodide-web-worker-error-runtimeerror-coroutine-raised

Conversation

@petraszd
Copy link
Copy Markdown
Contributor

Status

  • Ready

Description

If df is "almost empty" then df.apply may be still called (for some pandas internal reasons) even if there are zero rows and row_totals are empty iterator. Thus causing StopIterator error.

Related PRs

  • This PR is independent

Comment thread onecodex/viz/_bargraph.py Outdated
@petraszd petraszd merged commit 65d4bc1 into master Apr 29, 2026
15 checks passed
@jairideout jairideout deleted the petras/dev-11620-pyodide-web-worker-error-runtimeerror-coroutine-raised branch April 29, 2026 15:25
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.

3 participants