Skip to content

DataFrame.info() issue with duplicated columns #11761

Closed
@wavexx

Description

@wavexx

When duplicated columns exists, DataFrame.info() returns broken output:

pd.DataFrame([[1, 1]], columns=['x','x']).info()
<class 'pandas.core.frame.DataFrame'>
Int64Index: 1 entries, 0 to 0
Data columns (total 2 columns):
x    1 non-null x    int64
x    int64
dtype: object
x    1 non-null x    int64
x    int64
dtype: object
dtypes: int64(2)
memory usage: 24.0 bytes

See #11754

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions