Skip to content

Port df.combine_first and/or df.update #449

Open
@joshuakoh1

Description

@joshuakoh1

Trying to merge two dfs and overwrite the columns with one df. Using dfd.merge simply renames the duplicate column with _1. Pandas has two functions that provide the required functionality.

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.combine_first.html
https://pandas.pydata.org/pandas-docs/stable/user_guide/merging.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions