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

Diagnostic failures due to latest version of pandas #3196

Closed
remi-kazeroni opened this issue May 26, 2023 · 3 comments · Fixed by #3209
Closed

Diagnostic failures due to latest version of pandas #3196

remi-kazeroni opened this issue May 26, 2023 · 3 comments · Fixed by #3209
Assignees
Milestone

Comments

@remi-kazeroni
Copy link
Contributor

Describe the bug
In the recipe testing with esmvalcore2.8.1rc1, it was found that several recipes fail with diagnostic issues relates to the pandas package. See ESMValGroup/ESMValCore#2069
This package was at version 1.5.3 at the time of the v2.8.0 release and is now at 2.0.1.

Failing recipes due to issues with pandas:

These 5 recipes share the same maintainer: @schlunma 😅
Could you please have a look at these issues and tell us if it would be possible to fix these diagnostics or if we should rather pin pandas?

Please attach

  • The recipe that you are trying to run, you can find a copy in the run directory in the output directory
  • The main_log_debug.txt file, this can also be found in the run directory in the output directory

See https://esmvaltool.dkrz.de/shared/esmvaltool/v2.8.1rc1/

@schlunma
Copy link
Contributor

Thanks for doing all those tests @remi-kazeroni !!

It looks like its almost always the same issue, which I think is pretty easy to fix. I try to address this is time for v2.9.0.

@valeriupredoi
Copy link
Contributor

🐼 =2.0.2 is now out, would that be fixing the issue, possibly?

@bouweandela
Copy link
Member

recipe_impact.yml appears to be affected too, running it with pandas 2.0.2 it fails with the error:

Traceback (most recent call last):
  File "/home/b/b381141/src/esmvalgroup/esmvaltool/esmvaltool/diag_scripts/impact/bias_and_change.py", line 266, in <module>
    main(config)
  File "/home/b/b381141/src/esmvalgroup/esmvaltool/esmvaltool/diag_scripts/impact/bias_and_change.py", line 259, in main
    plot_htmltable(tidy_df, ancestors, cfg)
  File "/home/b/b381141/src/esmvalgroup/esmvaltool/esmvaltool/diag_scripts/impact/bias_and_change.py", line 172, in plot_htmltable
    .render()
     ^^^^^^
AttributeError: 'Styler' object has no attribute 'render'. Did you mean: '_render'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants