Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update preprocessing.py #314

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Update preprocessing.py #314

merged 1 commit into from
Feb 4, 2025

Conversation

hoondy
Copy link
Contributor

@hoondy hoondy commented Feb 1, 2025

Pandas groupby call now defaults to numeric_only=False. See pandas-dev/pandas#46072. This change breaks get_filter_stats call when data.obs contains str and category dtype. It fixes by explicitly calling median function with numeric_only=True.

Pandas groupby call now defaults to `numeric_only=False`. See pandas-dev/pandas#46072. This change breaks `get_filter_stats` call when `data.obs` contains `str` and `category` dtype. It fixes by explicitly calling `median` function with `numeric_only=True`.
@yihming
Copy link
Member

yihming commented Feb 4, 2025

@hoondy Thank you for your contribution! I'll fix the CI part so no worry about check failure.

@yihming yihming merged commit 3637068 into lilab-bcb:master Feb 4, 2025
0 of 5 checks passed
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