Skip to content

Commit

Permalink
Replace missing_value_replacement with NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
pvk-developer committed Feb 9, 2022
1 parent 2f28f38 commit ec32d26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/transformers/test_numerical.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ def test__learn_rounding_digits_negative_decimals_integer(self):
assert output == -1

def test__learn_rounding_digits_all_missing_value_replacements(self):
"""Test the _learn_rounding_digits method with data that is all missing_value_replacements.
"""Test the _learn_rounding_digits method with data that is all NaNs.
If the data is all missing_value_replacements, expect that the output is None.
If the data is all NaNs, expect that the output is None.
Input:
- An array of missing_value_replacements.
- An array of NaN.
Output:
- None
"""
Expand Down Expand Up @@ -649,7 +649,7 @@ def test__reverse_transform_rounding_none_with_nulls_dtype_int(self):
- 2d Array of multiple float values with decimals and a column setting at least 1 null.
Output:
- First column of the input array rounded, replacing the indicated value with a
``missing_value_replacement``, and kept as float values.
``NaN``, and kept as float values.
"""
# Setup
data = np.array([
Expand Down

0 comments on commit ec32d26

Please sign in to comment.