Skip to content

Commit

Permalink
Last attempt to copy data_definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Liraim committed Jan 9, 2025
1 parent d171938 commit 0fddf73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/evidently/future/datasets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import abc
import copy
import dataclasses
from abc import abstractmethod
from dataclasses import field
Expand Down Expand Up @@ -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 = {}
Expand Down

0 comments on commit 0fddf73

Please sign in to comment.