Skip to content

Make nomenclature compatible with pandas 3.x - #624

Open
dc-almeida wants to merge 10 commits into
IAMconsortium:mainfrom
dc-almeida:update/pandas-3.x
Open

dc-almeida wants to merge 10 commits into
IAMconsortium:mainfrom
dc-almeida:update/pandas-3.x

Conversation

@dc-almeida

@dc-almeida dc-almeida commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds some small changes to make nomenclature compatible with the latest major release of pandas (v3).

The two changes are a dependency version update for pyam (32d0f5e and pyam#1010), that was patched to account for a change in default behaviour in DataFrame.stack(), and a type casting for string columns to object to make them compatible with None (f0a1c9c and dba816f).

The remaining commits are linting that likely was flagged due to updating the Ruff version.

@dc-almeida dc-almeida self-assigned this Nov 11, 2026

@danielhuppmann danielhuppmann left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, looks good to me!

But can you please add one workflow to run the tests also with pandas<3.0, similar to the legacy workflow that we have in pyam. To guard against unexpected behaviour, there may be packages like climate-processor that won't be compatible with the latest pandas for a while.

@dc-almeida

Copy link
Copy Markdown
Contributor Author

Added legacy workflow f908d5b @danielhuppmann

@dc-almeida
dc-almeida marked this pull request as ready for review November 12, 2026 10: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.

2 participants