(self, other: Table)
| 1757 | @contextualized_operator |
| 1758 | @check_arg_types |
| 1759 | def _update_cells(self, other: Table) -> Table: |
| 1760 | if not other._universe.is_subset_of(self._universe): |
| 1761 | raise ValueError( |
| 1762 | "Universe of the argument of Table.update_cells() needs to be " |
| 1763 | + "a subset of the universe of the updated table.\n" |
| 1764 | + "Consider using Table.promise_is_subset_of() to assert this.\n" |
| 1765 | + "(However, untrue assertion might result in runtime errors.)" |
| 1766 | ) |
| 1767 | context = clmn.UpdateCellsContext( |
| 1768 | left=self._id_column, |
| 1769 | right=other._id_column, |
| 1770 | updates={name: other._columns[name] for name in other.keys()}, |
| 1771 | ) |
| 1772 | return self._table_with_context(context) |
| 1773 | |
| 1774 | @trace_user_frame |
| 1775 | @check_arg_types |
no test coverage detected