Skip to content

Simplify replace_with implementation #2411

@jeromekelleher

Description

@jeromekelleher

Implementation in #2389 can be much simpler. I think this works:

def replace_with(self, other):
     self.set_columns(**other.asdict())

A lot of work went into making the dictionary representation a solid and efficient way of moving table data around, so we should avoid duplicating its logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Python APIIssue is about the Python API

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions