Skip to content

Add inplace option to DataFrame.update() #10730

Closed
@dov

Description

@dov

Currently DataFrame.update() modifies the dataframe in place. I feel this is not symmetric to how most other methods work, e.g. set_index(), that returns a new DataFrame. It is probably too late to change this default behavior (isi it?), but if at the very least an inplace option was added (with default value True to support the current behaviour), it will be easier to chain a sequence of operators that includes update().

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateNeeds DiscussionRequires discussion from core team before further actioninplaceRelating to inplace parameter or equivalent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions