NVIDIA-Merlin / core

Core Utilities for NVIDIA Merlin
Apache License 2.0
19 stars 14 forks source link

Simplify `ColumnSchema.with` methods using `dataclasses.replace()` #194

Closed karlhigley closed 1 year ago

karlhigley commented 1 year ago

dataclasses.replace is equivalent to what we were already doing since it creates a copy and modifies the copy, but it's shorter, easier to read and write, and less brittle when we add new fields to ColumnSchema.

github-actions[bot] commented 1 year ago

Documentation preview

https://nvidia-merlin.github.io/core/review/pr-194