Skip to content

BUG: DataFrame.combine with non-unique columns #51340

@jbrockmendel

Description

@jbrockmendel
# Based on test_combine_datetlike_udf df = pd.DataFrame({"A": range(5), "B": range(5)}) df.columns = ["A", "A"] other = df.copy() df.iloc[1, :] = None def combiner(a, b): return b >>> df.combine(other, combiner) AttributeError: 'DataFrame' object has no attribute 'dtype'. Did you mean: 'dtypes'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIndexingRelated to indexing on series/frames, not to indexes themselvescombine/combine_first/updateNDFrame.combine, combine_first, update

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions