Skip to content

Plot uses incorrect colors when columns have the same name #11136

Closed
@stevenmanton

Description

@stevenmanton

It seems like the plot function jumbles up the colors when columns in a DataFrame have the same name:

pd.concat([pd.DataFrame({'b': [0, 1, 0], 'a': [1, 2, 3]}), pd.DataFrame({'a': [2, 4, 6]})], axis=1).plot();

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TestsUnit test(s) needed to prevent regressions

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions