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

Fix pandas and plotting warning #1065

Merged
merged 18 commits into from
May 31, 2023
Merged

Conversation

michalk8
Copy link
Contributor

@michalk8 michalk8 commented May 23, 2023

Changes

Bug fixes

Fixes pandas>=2, removes setting attributes in get_df, Colorbar.draw() (deprecated; doesn't seem to have any effect) and uses scanpy.pp.log1p in log1p implementation. Also fixes some tests and ignores warning in tests.

Also incorporates the changes from #1059

Related issues

Closes #958
Closes #1037
Closes #1058
Closes theislab/cellrank#1018
Closes #1071

@michalk8 michalk8 added the bugfix Fixes a bug label May 23, 2023
@michalk8 michalk8 self-assigned this May 23, 2023
@michalk8 michalk8 changed the title Fix/pandas2.0 Fix pandas and plotting warning May 23, 2023
@michalk8 michalk8 requested a review from WeilerP May 23, 2023 15:15
Copy link
Member

@WeilerP WeilerP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @michalk8. I only left minor comments (mainly moving unnecessary changes to separate PRs).

.github/workflows/ci.yml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
scvelo/preprocessing/neighbors.py Outdated Show resolved Hide resolved
scvelo/preprocessing/utils.py Outdated Show resolved Hide resolved
tests/preprocessing/test_moments.py Outdated Show resolved Hide resolved
tests/preprocessing/test_neighbors.py Outdated Show resolved Hide resolved
tests/preprocessing/test_utils.py Outdated Show resolved Hide resolved
@WeilerP WeilerP merged commit e8fa7a1 into theislab:master May 31, 2023
@michalk8 michalk8 deleted the fix/pandas2.0 branch June 7, 2023 19:09
@WeilerP WeilerP mentioned this pull request Jun 8, 2023
@hiraksarkar
Copy link

hiraksarkar commented Aug 28, 2023

Getting the same error with the below version

>  pd.__version__
'2.0.3'
> scv.__version__
'0.2.5'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a bug
Projects
None yet
3 participants