Skip to content

ENH: Make DataFrame.info() follow display.unicode.east_asian_width option #46082

Open
@dlimpid

Description

@dlimpid

If display.unicode.east_asian_width is enabled pandas aligns CJK characters properly, as width 2, when printing data frame or series.

It seems that, however, DataFrame.info() does not change its behavior.

Is it possible to make DataFrame.info() also follow the option?

pd.set_option("display.notebook_repr_html", False)
pd.set_option("display.unicode.east_asian_width", True)

df = pd.DataFrame(
    {
        "열이름": ["하나", "둘", "셋"],
        "列名": ["いち", "に", "さん"],
        "column": ["one", "two", "three"],
    }
)
print(df)
print(df.dtypes)
df.info()

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions