Skip to content

Commit 07b62ce

Browse files
author
Roja Reddy Sareddy
committed
numpy fix for slow test
1 parent 293448a commit 07b62ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integ/sagemaker/feature_store/feature_processor/test_feature_processor_integ.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,15 +1108,15 @@ def get_expected_dataframe():
11081108
expected_dataframe = pd.read_csv(os.path.join(_FEATURE_PROCESSOR_DIR, "car-data.csv"))
11091109
expected_dataframe["Model"].replace("^\d\d\d\d\s", "", regex=True, inplace=True) # noqa: W605
11101110
expected_dataframe["Mileage"].replace("(,)|(mi\.)", "", regex=True, inplace=True) # noqa: W605
1111-
expected_dataframe["Mileage"].replace("Not available", np.NaN, inplace=True)
1111+
expected_dataframe["Mileage"].replace("Not available", np.nan, inplace=True)
11121112
expected_dataframe["Price"].replace("\$", "", regex=True, inplace=True) # noqa: W605
11131113
expected_dataframe["Price"].replace(",", "", regex=True, inplace=True)
11141114
expected_dataframe["MSRP"].replace(
11151115
"(^MSRP\s\\$)|(,)", "", regex=True, inplace=True # noqa: W605
11161116
)
1117-
expected_dataframe["MSRP"].replace("Not specified", np.NaN, inplace=True)
1117+
expected_dataframe["MSRP"].replace("Not specified", np.nan, inplace=True)
11181118
expected_dataframe["MSRP"].replace(
1119-
"\\$\d+[a-zA-Z\s]+", np.NaN, regex=True, inplace=True # noqa: W605
1119+
"\\$\d+[a-zA-Z\s]+", np.nan, regex=True, inplace=True # noqa: W605
11201120
)
11211121
expected_dataframe["Mileage"] = expected_dataframe["Mileage"].astype(float)
11221122
expected_dataframe["Price"] = expected_dataframe["Price"].astype(float)

0 commit comments

Comments
 (0)