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

Reindexing only valid with uniquely valued Index objects #67

Open
raozuming opened this issue Jun 28, 2024 · 1 comment
Open

Reindexing only valid with uniquely valued Index objects #67

raozuming opened this issue Jun 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@raozuming
Copy link

Describe the bug
mudata v.0.2.3 version, anndata v0.9.2, calling mudata.update(), causing anadata data update failure, confirming that there are no duplicate data in the original data, generating duplicate data in line 799 now_index = pd.Index(now_values), triggering line 801 index_order = prev_index.get_indexer(now_index), pandas.errors.InvalidIndexError: Reindexing only valid with uniquely valued Index objects

image

To Reproduce
Steps to reproduce the behaviour.

Please provide exact steps to reproduce the bug in a clean Python environment. In case it's not clear what's causing this bug, please provide the data or the data generation procedure.
Sometimes it is not possible to share the data but usually it is possible to replicate problems on publicly available datasets or to share a subset of your data.

Expected behaviour
A clear and concise description of what you expected to happen.

System

  • OS: centOS
  • Python version :3.8.12
  • Versions of libraries involved :Anndata: v0.9.2 mudata: v0.2.3 pandas: v1.5.3

Additional context
Add any other context about the problem here.

@raozuming raozuming added the bug Something isn't working label Jun 28, 2024
@gtca
Copy link
Collaborator

gtca commented Jul 2, 2024

Do you have any steps to reproduce that, @raozuming?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants