Skip to content

Commit 933cb54

Browse files
rsareddy0329Roja Reddy Sareddysage-makernargokul
authored
Fix for a failed slow test: numpy fix (#5304)
* Add numpy 2.0 support * Add numpy 2.0 support * Add numpy 2.0 support * Add numpy 2.0 support * Add numpy 2.0 support * Fix incompatible_dependecies test * Fix incompatible_dependecies test * Fix incompatible_dependecies test * Fix incompatible_dependecies test * Fix incompatible_dependecies test * update tensorflow artifacts * update tensorflow artifacts * update tensorflow artifacts * testfile codestyle fixes * testfile codestyle fixes * update SKLearn image URI config * update SKLearn image URI config * docstyle fixes * docstyle fixes * numpy fixes * numpy fixes * numpy fixes * numpy fixes * numpy fixes * numpy fixes * numpy fixes * numpy fixes * numpy fix for slow test * numpy fix for slow test * numpy fix for slow test * numpy fix for slow test --------- Co-authored-by: Roja Reddy Sareddy <[email protected]> Co-authored-by: parknate@ <[email protected]> Co-authored-by: Gokul Anantha Narayanan <[email protected]>
1 parent cf241ea commit 933cb54

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)