-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Labels
EnhancementTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite
Description
assert_equal was added in #22033 after other testing methods were exposed in the public API in #16003, and I haven't been able to find any discussion on whether this should be added. I recently ran into a case where it could have been useful.
If we are to go this route, then I think two enhancements should be made first:
- Improve the docstring
- Raise if the objects passed are not pandas objects (Series, DataFrame, EA, Index, etc).
For the 2nd, the current implementation has a specific check for strings and a fallthrough for all other objects. These two cases are hit by 9 tests that would need to be changed.
Metadata
Metadata
Assignees
Labels
EnhancementTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite