Skip to content

Commit

Permalink
Needed some changes in astype to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickleonardy committed Nov 3, 2023
1 parent 6130a4b commit c6c3c56
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/preprocessing/test_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,13 +357,13 @@ def test_mutable_train_data_fit_transform(self, mocker: MockerFixture):
},
).astype(
{
"a": np.float64(),
"b": np.float64(),
"d": np.float64(),
"e": np.float64(),
"category_1": pd.CategoricalDtype(),
"category_2": pd.CategoricalDtype(),
"category_3": pd.CategoricalDtype(),
"a": "float64",
"b": "float64",
"d": "float64",
"e": "float64",
"category_1": "category",
"category_2": "category",
"category_3": "category",
}
),
pd.DataFrame(
Expand All @@ -376,11 +376,11 @@ def test_mutable_train_data_fit_transform(self, mocker: MockerFixture):
}
).astype(
{
"a": np.float64(),
"d": np.float64(),
"e": np.float64(),
"category_1": pd.CategoricalDtype(),
"category_2": pd.CategoricalDtype(),
"a": "float64",
"d": "float64",
"e": "float64",
"category_1": "category",
"category_2": "category",
}
),
),
Expand Down

0 comments on commit c6c3c56

Please sign in to comment.