Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
atl1502 committed Apr 24, 2024
1 parent 0751d86 commit a25a997
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion dataprofiler/profilers/categorical_column_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def update(self, df_series: Series) -> CategoricalColumn:
:rtype: CategoricalColumn
"""
# TODO remove onces profiler builder is updated
if type(df_series) == pd.Series:
if isinstance(df_series, pd.Series):
df_series = pl.from_pandas(df_series) # type: ignore
# If condition for limiting profile calculations
if len(df_series) == 0 or self._stop_condition_is_met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@


class TestCategoricalColumn(unittest.TestCase):
maxDiff = None

@classmethod
def setUp(self):
test_utils.set_seed(seed=0)
Expand Down Expand Up @@ -889,7 +887,6 @@ def test_json_encode(self):

def test_json_encode_after_update(self):
df_categorical = pl.Series(
None,
[
"a",
"a",
Expand Down

0 comments on commit a25a997

Please sign in to comment.