algorithms
algorithms copied to clipboard
Fix remove_duplicates function to handle binary values
This PR addresses an issue (originally found in unit test run) where the binary values for 1 and True (0 and False) are treated equally for this function.
Changes
- Updated implementation of
remove_duplicates(array)function. - Updated the unit tests for
remove_duplicates(array)function. - Added docstring to reflect the improved behavior and provide clear examples.
- Fixed the subsequent error in
test_summarize_ranges()method in the same test script (test_array.py)