@@ -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