Skip to content

Commit

Permalink
Undo changes for 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
pvk-developer committed Jun 30, 2023
1 parent ee2fe64 commit 56eeccc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sdv/constraints/tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,10 +712,7 @@ def _reverse_transform(self, table_data):
diff_column = diff_column.round()

if self._is_datetime:
nan_mask = pd.isna(diff_column)
diff_column[nan_mask] = 0
diff_column = diff_column.astype('timedelta64[ns]')
diff_column[nan_mask] = pd.NaT

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

0 comments on commit 56eeccc

Please sign in to comment.