Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 26, 2024
1 parent d45b2a3 commit bf7f6f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sdgx/data_models/inspectors/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,21 +156,21 @@ def fit(self, raw_data: pd.DataFrame, *args, **kwargs):

# Initialize sets for positive and negative columns
self.positive_columns = set()
self.negative_columns = set()
self.negative_columns = set()

# Store the length of the DataFrame
self.df_length = len(raw_data)

# Iterate all columns and determain the final data type
for col in raw_data.columns:
if raw_data[col].dtype in ['int64', 'float64']:
# float or int
if raw_data[col].dtype in ["int64", "float64"]:
# float or int
if self._is_int_column(raw_data[col]):
self.int_columns.add(col)
else:
self.float_columns.add(col)
# positive? negative?

# positive? negative?
if self._is_positive_column(raw_data[col]):
self.positive_columns.add(col)
elif self._is_negative_column(raw_data[col]):
Expand Down

0 comments on commit bf7f6f7

Please sign in to comment.