Skip to content

[DEP] AttributeError: 'Styler' object has no attribute 'render' #801

Closed
@AlexanderJuestel

Description

@AlexanderJuestel

Describe the bug
Using pandas==2.0.1 fails when calling geo_model.surfaces returning an AttributeError: 'Styler' object has no attribute 'render'

The render attribute was deprecated in pandas 2.0, see pandas-dev/pandas#49397

The function was deprecated in favor of https://pandas.pydata.org/docs/reference/api/pandas.io.formats.style.Styler.to_html.html

To Reproduce
Provide detailed steps to reproduce the behavior:
Use pandas==2.0.1

Using pandas==1.5.3 will mitigate the error.
...

Expected behavior
No Error

Screenshots
image

Desktop (please complete the following information):

  • OS: (e.g. iOS)
  • GemPy Version
    • if installed via pip: provide GemPy version (e.g. 2.0.1)
    • if cloned from GitHub: provide Git commit id (e.g. 839bf85)
  • Jupyter Version (if applicable)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions