Skip to content

DOC: Series.update throws a FutureWarning about def[col] = df[col].method but .update returns None and works inplace #59788

Open
@spawn-guy

Description

@spawn-guy

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.update.html#pandas.Series.update

Documentation problem

df.update resembles how python.dict.update works, but df.update doesn't support CoW

Suggested fix for documentation

remove FutureWarning for the df.update

or create a (for example) df.coalesce method that will, actually, return something. this shouldn't brake existing code

Metadata

Metadata

Assignees

No one assigned

    Labels

    Copy / view semanticsNeeds DiscussionRequires discussion from core team before further actionWarningsWarnings that appear or should be added to pandas

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions