Skip to content

AttributeError: module 'pandas.io.formats' has no attribute 'style' #24884

Closed
@nuistzhou

Description

@nuistzhou

def clear(self):
""""Reset" the styler, removing any previously applied styles.
Returns None.
"""
self.ctx.clear()
self._todo = []

I am using the Pandas version 0.23.4.
When I call pandas.io.formats.style.Styler.clear(), it gives the error: "AttributeError: module 'pandas.io.formats' has no attribute 'style'".
However, I could find the 'style.py' under the Pandas installation folder.

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