diff --git a/src/evidently/future/datasets.py b/src/evidently/future/datasets.py index 75d957ca65..c0614c6d4f 100644 --- a/src/evidently/future/datasets.py +++ b/src/evidently/future/datasets.py @@ -1,4 +1,5 @@ import abc +import copy import dataclasses from abc import abstractmethod from dataclasses import field @@ -291,7 +292,7 @@ def __init__( if data_definition is None: self._data_definition = self._generate_data_definition(data) else: - self._data_definition = DataDefinition(**dataclasses.asdict(data_definition)) + self._data_definition = copy.deepcopy(data_definition) (rows, columns) = data.shape column_stats = {}