Skip to content

pandas v3.0.1 merge error fix#16

Merged
nsapoval merged 1 commit into
mainfrom
pd_update
Feb 26, 2026
Merged

pandas v3.0.1 merge error fix#16
nsapoval merged 1 commit into
mainfrom
pd_update

Conversation

@microbemarsh
Copy link
Copy Markdown
Collaborator

When testing some of the Somatem scripts, we recently installed lemur from bioconda and the recent pandas update to v3.0.1 has created ValueError: You are trying to merge on int64 and str columns for key 'Target_ID' in the EM_step function.

See error here (partial copy from Somatem nextflow.log script):
lemur_pandas_error.txt

To fix this, I made both self.P_rgs_df.reset_index() and self.F keys into strings before merging.

Tested and works as before!

@nsapoval nsapoval merged commit eda2cb5 into main Feb 26, 2026
0 of 2 checks passed
@ppreshant
Copy link
Copy Markdown
Member

ppreshant commented May 7, 2026

Might need to create a new version tag with this pushed to bioconda?
@microbemarsh I get the same error again and realized the bioconda version doesn't have this PR's changes

@microbemarsh
Copy link
Copy Markdown
Collaborator Author

@ppreshant this would be a perfect place for a bioconda script patch that could probably be made by using git diff

here is the example that Bryce introduced to me earlier (and I applied for some of the first bioconda builds goofs):

"To do this, you make whatever changes you want in your project's source, then pipe the git diff output between the commit you want to use and the commit that is tied to the release on bioconda. That diff file is a "patch" that you can add to the bioconda recipe. For example:"

meta.yml

scripts.patches

@ppreshant
Copy link
Copy Markdown
Member

That's a good idea. Since there's some 7 commits, it might also be good + easier to release a new version tag v1.0.2?

  • Did you want me to go ahead and make a new release @nsapoval?

@nsapoval
Copy link
Copy Markdown
Collaborator

nsapoval commented May 8, 2026

Yep, go ahead and do a release with v1.0.2 tag.

ppreshant added a commit to treangenlab/somatem that referenced this pull request May 8, 2026
- lemur's bioconda is not updated with latest patch. Discussion ongoing at [lemur/pull16](treangenlab/lemur#16)
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