Skip to content

Will inplace save memory by avoiding x2? #20639

@enfeizhan

Description

@enfeizhan

Hope this is the place to ask the developers this question directly. Always wondering which way saves memory. As an example, we use dropna:

df.drop('col', inplace=True, axis=1)

or

df = df.drop('col', axis=1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions