Skip to content

Commit

Permalink
Convert to timedelta
Browse files Browse the repository at this point in the history
  • Loading branch information
pvk-developer committed Jun 29, 2023
1 parent bff5913 commit 9692450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdv/constraints/tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ def _reverse_transform(self, table_data):
diff_column = diff_column.round()

if self._is_datetime:
diff_column = diff_column.astype('timedelta64[ns]', errors='ignore')
diff_column = convert_to_timedelta(diff_column)

if self._operator in [np.greater, np.greater_equal]:
original_column = self._value + diff_column
Expand Down

0 comments on commit 9692450

Please sign in to comment.