Skip to content

[BUG] Handling two columns with the same name on .iplot() #282

@thomktz

Description

@thomktz

[cufflinks 0.17.3, plotly >= 4.1.1, used in VisualStudioCode notebooks]

Reproduce

To reproduce the bug, call .iplot() on a dataframe containing two columns with the same name

Description

The graph will appear very weird and not readable at all

Proposed solution

When two or more columns have the same name, automatically rename them "{x}_0", "{x}_1", or "{x} (0)", "{x} (1)"

I can work on this myself if others find the issue problematic and the solution relevant.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions